]> git.ipfire.org Git - pbs.git/commitdiff
Rename web/handlers_auth.py -> web/auth.py
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Oct 2017 14:44:25 +0000 (15:44 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 26 Oct 2017 14:44:25 +0000 (15:44 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/web/__init__.py
src/web/auth.py [moved from src/web/handlers_auth.py with 100% similarity]
src/web/handlers.py

index a06cba584f308483b34271b3ada943bb175883f0..596edfe4564eec933c9a11a59f120b279b2bffb5 100644 (file)
@@ -124,10 +124,10 @@ hubdir = $(buildservicedir)/hub
 web_PYTHON = \
        src/web/__init__.py \
        src/web/api.py \
+       src/web/auth.py \
        src/web/base.py \
        src/web/errors.py \
        src/web/handlers.py \
-       src/web/handlers_auth.py \
        src/web/handlers_builders.py \
        src/web/handlers_builds.py \
        src/web/handlers_distro.py \
index 315216945ed86094029482f9c9e9c01266c8fc62..27a5e0bc23e932b14b68892051e59c1456a69041 100644 (file)
@@ -16,6 +16,7 @@ from ..decorators import *
 from .handlers import *
 
 from . import api
+from . import auth
 from . import errors
 from . import mirrors
 from . import ui_modules
@@ -103,10 +104,10 @@ class Application(tornado.web.Application):
                        (r"/", IndexHandler),
 
                        # Handle all the users logins/logouts/registers and stuff.
-                       (r"/login", LoginHandler),
-                       (r"/logout", LogoutHandler),
-                       (r"/register", RegisterHandler),
-                       (r"/password-recovery", PasswordRecoveryHandler),
+                       (r"/login", auth.LoginHandler),
+                       (r"/logout", auth.LogoutHandler),
+                       (r"/register", auth.RegisterHandler),
+                       (r"/password-recovery", auth.PasswordRecoveryHandler),
 
                        # User profiles
                        (r"/users", UsersHandler),
@@ -114,7 +115,7 @@ class Application(tornado.web.Application):
                        (r"/user/(\w+)/passwd", UserPasswdHandler),
                        (r"/user/(\w+)/delete", UserDeleteHandler),
                        (r"/user/(\w+)/edit", UserEditHandler),
-                       (r"/user/(\w+)/activate", ActivationHandler),
+                       (r"/user/(\w+)/activate", auth.ActivationHandler),
                        (r"/user/(\w+)", UserHandler),
                        (r"/profile", UserHandler),
                        (r"/profile/builds", UsersBuildsHandler),
similarity index 100%
rename from src/web/handlers_auth.py
rename to src/web/auth.py
index 792b3b95cd31c7836238b08f6e9e712687d11743..09928833aacae9bdc3b9d50733b690365de0a956 100644 (file)
@@ -5,7 +5,6 @@ import tornado.web
 
 from . import base
 
-from .handlers_auth import *
 from .handlers_builds import *
 from .handlers_builders import *
 from .handlers_distro import *