From: Michael Tremer Date: Thu, 26 Oct 2017 14:44:25 +0000 (+0100) Subject: Rename web/handlers_auth.py -> web/auth.py X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa8d5ad3a5bfab0ad1ce04fb17e60abae6c0bfd2;p=pbs.git Rename web/handlers_auth.py -> web/auth.py Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index a06cba58..596edfe4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/src/web/__init__.py b/src/web/__init__.py index 31521694..27a5e0bc 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -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), diff --git a/src/web/handlers_auth.py b/src/web/auth.py similarity index 100% rename from src/web/handlers_auth.py rename to src/web/auth.py diff --git a/src/web/handlers.py b/src/web/handlers.py index 792b3b95..09928833 100644 --- a/src/web/handlers.py +++ b/src/web/handlers.py @@ -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 *