Removing dynamic module loading and replacing it with static loading. Fixes #7492

Gets rid of all occurrences and usage of get_own_javascripts since it is no longer used.
This commit is contained in:
Aditya Toshniwal
2022-06-30 11:06:50 +05:30
committed by Akshay Joshi
parent e46468321d
commit cb635f6706
51 changed files with 490 additions and 550 deletions

View File

@@ -68,8 +68,6 @@ class PgAdminModule(Blueprint):
sub-modules at once.
"""
self.submodules = list(app.find_submodules(self.import_name))
super(PgAdminModule, self).register(app, options)
for module in self.submodules:
@@ -94,14 +92,6 @@ class PgAdminModule(Blueprint):
"""
return dict()
def get_own_javascripts(self):
"""
Returns:
list: the javascripts used by this module, not including
any script needed by the submodules.
"""
return []
def get_own_menuitems(self):
"""
Returns:
@@ -139,13 +129,6 @@ class PgAdminModule(Blueprint):
res.update(module.messages)
return res
@property
def javascripts(self):
javascripts = self.get_own_javascripts()
for module in self.submodules:
javascripts.extend(module.javascripts)
return javascripts
@property
def menu_items(self):
menu_items = self.get_own_menuitems()