2016-02-22 13:07:16 +00:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2019-01-02 15:54:12 +05:30
|
|
|
# Copyright (C) 2013 - 2019, The pgAdmin Development Team
|
2016-02-22 13:07:16 +00:00
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
"""A blueprint module providing utility functions for the application."""
|
|
|
|
|
2016-06-21 14:12:14 +01:00
|
|
|
from flask import url_for
|
2016-02-22 13:07:16 +00:00
|
|
|
from pgadmin.utils import PgAdminModule
|
|
|
|
|
2019-02-14 11:15:01 +00:00
|
|
|
MODULE_NAME = 'dependents'
|
2016-02-22 13:07:16 +00:00
|
|
|
|
|
|
|
|
2019-02-14 11:15:01 +00:00
|
|
|
class DependentsModule(PgAdminModule):
|
2016-02-22 13:07:16 +00:00
|
|
|
def get_own_javascripts(self):
|
|
|
|
return [{
|
2019-02-14 11:15:01 +00:00
|
|
|
'name': 'pgadmin.browser.dependents',
|
|
|
|
'path': url_for('dependents.static', filename='js/dependents'),
|
2016-02-22 13:07:16 +00:00
|
|
|
'when': None
|
2016-06-21 14:21:06 +01:00
|
|
|
}]
|
|
|
|
|
2016-02-22 13:07:16 +00:00
|
|
|
|
|
|
|
# Initialise the module
|
2019-02-14 11:15:01 +00:00
|
|
|
blueprint = DependentsModule(MODULE_NAME, __name__,
|
|
|
|
url_prefix='/misc/dependents')
|