]> git.ipfire.org Git - pbs.git/commitdiff
web: Don't import everything from handlers
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Jan 2025 14:05:27 +0000 (14:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Jan 2025 14:05:27 +0000 (14:05 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/__init__.py

index e53e21f5f3b484bf6def2e2d3a0a823014536ee2..9d6f6492bca9bc955fce5ff846ebb0abf2410bd0 100644 (file)
@@ -9,6 +9,7 @@ from .. import Backend
 from ..constants import *
 
 # Import all handlers
+from . import handlers
 from . import auth
 from . import builders
 from . import builds
@@ -24,7 +25,6 @@ from . import search
 from . import sources
 from . import uploads
 from . import users
-from .handlers import *
 
 class Application(tornado.web.Application):
        def __init__(self, **kwargs):
@@ -48,7 +48,7 @@ class Application(tornado.web.Application):
 
                tornado.web.Application.__init__(self, [
                        # Entry site that lead the user to index
-                       (r"/", IndexHandler),
+                       (r"/", handlers.IndexHandler),
 
                        # Authentication
                        (r"/login", auth.LoginHandler),