From: Michael Tremer Date: Sat, 21 Oct 2017 17:50:18 +0000 (+0100) Subject: hub: Allow easy access to database X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d08db329baf61a8bab2fc7bc76ca252a598fe323;p=people%2Fjschlag%2Fpbs.git hub: Allow easy access to database Signed-off-by: Michael Tremer --- diff --git a/src/hub/handlers.py b/src/hub/handlers.py index 37fb60e..961e65a 100644 --- a/src/hub/handlers.py +++ b/src/hub/handlers.py @@ -40,6 +40,10 @@ class BaseHandler(LongPollMixin, tornado.web.RequestHandler): """ return self.application.backend + @property + def db(self): + return self.backend.db + def get_basic_auth_credentials(self): """ This handles HTTP Basic authentication.