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

index f01eaaceb6fa56ed758b653f061fd26975ef53de..a06cba584f308483b34271b3ada943bb175883f0 100644 (file)
@@ -123,10 +123,10 @@ hubdir = $(buildservicedir)/hub
 
 web_PYTHON = \
        src/web/__init__.py \
+       src/web/api.py \
        src/web/base.py \
        src/web/errors.py \
        src/web/handlers.py \
-       src/web/handlers_api.py \
        src/web/handlers_auth.py \
        src/web/handlers_builders.py \
        src/web/handlers_builds.py \
index e9682c8bbcd7211bd252c3923ff3c76db438fca8..86bed0061360e264502a7478ce99f4b6fe10f921 100644 (file)
@@ -158,7 +158,7 @@ src/templates/user-profile-passwd.html
 src/templates/user-profile-passwd-ok.html
 src/hub/handlers.py
 src/hub/__init__.py
-src/web/handlers_api.py
+src/web/api.py
 src/web/handlers_auth.py
 src/web/handlers_base.py
 src/web/handlers_builders.py
index 01425ba9f904e03d19441c98b89468f6fde891c3..315216945ed86094029482f9c9e9c01266c8fc62 100644 (file)
@@ -15,7 +15,7 @@ from ..decorators import *
 
 from .handlers import *
 
-from . import handlers_api
+from . import api
 from . import errors
 from . import mirrors
 from . import ui_modules
@@ -233,7 +233,7 @@ class Application(tornado.web.Application):
                        (r"/sessions", SessionsHandler),
 
                        # API handlers
-                       (r"/api/packages/autocomplete", handlers_api.ApiPackagesAutocomplete),
+                       (r"/api/packages/autocomplete", api.ApiPackagesAutocomplete),
                ], default_handler_class=errors.Error404Handler, **settings)
 
                logging.info("Successfully initialied application")
similarity index 100%
rename from src/web/handlers_api.py
rename to src/web/api.py