From d08db329baf61a8bab2fc7bc76ca252a598fe323 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 21 Oct 2017 18:50:18 +0100 Subject: [PATCH] hub: Allow easy access to database Signed-off-by: Michael Tremer --- src/hub/handlers.py | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.47.3