]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
hub: Allow easy access to database
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 21 Oct 2017 17:50:18 +0000 (18:50 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 21 Oct 2017 17:50:18 +0000 (18:50 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hub/handlers.py

index 37fb60e9480690dfe008991b5c8679b3def3195a..961e65adbd2203a6af16dc219ad29f97c57c9e45 100644 (file)
@@ -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.