Update some more view config syntax
some common ones used by a particular app..
This commit is contained in:
parent
738d5d94e0
commit
a28a801a62
5 changed files with 45 additions and 6 deletions
|
@ -2405,6 +2405,15 @@ class PendingProductView(MasterView):
|
|||
permission='{}.resolve_product'.format(permission_prefix))
|
||||
|
||||
|
||||
def includeme(config):
|
||||
def defaults(config, **kwargs):
|
||||
base = globals()
|
||||
|
||||
ProductView = kwargs.get('ProductView', base['ProductView'])
|
||||
ProductView.defaults(config)
|
||||
|
||||
PendingProductView = kwargs.get('PendingProductView', base['PendingProductView'])
|
||||
PendingProductView.defaults(config)
|
||||
|
||||
|
||||
def includeme(config):
|
||||
defaults(config)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue