From: Michael Tremer Date: Thu, 26 Oct 2017 14:41:39 +0000 (+0100) Subject: Rename web/handlers_api.py -> web/api.py X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0e50a58371707f930a1c5cb20ef13ff0bafbd8e;p=pbs.git Rename web/handlers_api.py -> web/api.py Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index f01eaace..a06cba58 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/po/POTFILES.in b/po/POTFILES.in index e9682c8b..86bed006 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -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 diff --git a/src/web/__init__.py b/src/web/__init__.py index 01425ba9..31521694 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -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") diff --git a/src/web/handlers_api.py b/src/web/api.py similarity index 100% rename from src/web/handlers_api.py rename to src/web/api.py