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