1) Make folder name pluralise inside 'templates' folder and fix naming inconsistency.

2) Remove unwanted functions "module_js()" from the code.
3) Change naming convention for 'Roles' module.
This commit is contained in:
Akshay Joshi
2019-05-15 15:11:54 +05:30
parent 3364350b01
commit b7121bb2d2
744 changed files with 113 additions and 1180 deletions
@@ -89,25 +89,11 @@ class TablespaceView(PGChildNodeView):
'stats': [{'get': 'statistics'}, {'get': 'statistics'}],
'dependency': [{'get': 'dependencies'}],
'dependent': [{'get': 'dependents'}],
'module.js': [{}, {}, {'get': 'module_js'}],
'vopts': [{}, {'get': 'variable_options'}],
'move_objects': [{'put': 'move_objects'}],
'move_objects_sql': [{'get': 'move_objects_sql'}],
})
def module_js(self):
"""
This property defines (if javascript) exists for this node.
Override this property for your own logic.
"""
return make_response(
render_template(
"tablespaces/js/tablespaces.js",
_=gettext
),
200, {'Content-Type': 'application/javascript'}
)
def check_precondition(f):
"""
This function will behave as a decorator which will checks