From b85f9e6d1a8a5e15b9c4896917c464931c1c55a1 Mon Sep 17 00:00:00 2001 From: Ashesh Vashi Date: Sun, 28 Feb 2016 12:49:28 +0530 Subject: [PATCH] Creating an empty pgAdmin module container (named tools) for keeping all the sub-modules of type tools. --- web/pgadmin/tools/__init__.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 web/pgadmin/tools/__init__.py diff --git a/web/pgadmin/tools/__init__.py b/web/pgadmin/tools/__init__.py new file mode 100644 index 000000000..d64f06301 --- /dev/null +++ b/web/pgadmin/tools/__init__.py @@ -0,0 +1,25 @@ +########################################################################## +# +# pgAdmin 4 - PostgreSQL Tools +# +# Copyright (C) 2013 - 2016, The pgAdmin Development Team +# This software is released under the PostgreSQL Licence +# +########################################################################## + +"""A blueprint module container for keeping all submodule of type tool.""" + +from pgadmin.utils import PgAdminModule +from pgadmin.utils.ajax import bad_request +from flask.ext.babel import gettext + +MODULE_NAME = 'tools' + +# Initialise the module +blueprint = PgAdminModule(MODULE_NAME, __name__) + + +@blueprint.route("/") +def index(): + """Calling tools index URL directly is not allowed.""" + return bad_request(gettext('This URL can not be requested directly!'))