2016-02-22 07:07:16 -06:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
|
|
|
# Copyright (C) 2013 - 2016, The pgAdmin Development Team
|
|
|
|
# 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
|
|
|
|
|
|
|
|
MODULE_NAME = 'depends'
|
|
|
|
|
|
|
|
|
|
|
|
class DependsModule(PgAdminModule):
|
|
|
|
|
|
|
|
def get_own_javascripts(self):
|
|
|
|
return [{
|
|
|
|
'name': 'pgadmin.browser.object_depends',
|
|
|
|
'path': url_for('depends.static', filename='js/depends'),
|
|
|
|
'when': None
|
|
|
|
}]
|
|
|
|
|
|
|
|
# Initialise the module
|
|
|
|
blueprint = DependsModule(MODULE_NAME, __name__, url_prefix='/misc/depends')
|