mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Creating an empty pgAdmin module container (named tools) for keeping
all the sub-modules of type tools.
This commit is contained in:
parent
2bf8eccb67
commit
b85f9e6d1a
25
web/pgadmin/tools/__init__.py
Normal file
25
web/pgadmin/tools/__init__.py
Normal file
@ -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!'))
|
Loading…
Reference in New Issue
Block a user