Add stub methods for MasterView.template_kwargs_view() etc.

otherwise subclass has to consider, can i call super() or not?  it still does
for some other views, but at least create/view/edit are common enough that it
should always be able to call super() without concern for those
This commit is contained in:
Lance Edgar 2021-02-02 10:57:58 -06:00
parent 0209957def
commit e3bf7f2bb2

View file

@ -2077,6 +2077,24 @@ class MasterView(View):
return kwargs return kwargs
def template_kwargs_create(self, **kwargs):
"""
Method stub, so subclass can always invoke super() for it.
"""
return kwargs
def template_kwargs_view(self, **kwargs):
"""
Method stub, so subclass can always invoke super() for it.
"""
return kwargs
def template_kwargs_edit(self, **kwargs):
"""
Method stub, so subclass can always invoke super() for it.
"""
return kwargs
def get_db_engines(self): def get_db_engines(self):
""" """
Must return a dict (or even better, OrderedDict) which contains all Must return a dict (or even better, OrderedDict) which contains all