move flag for hiding states portlet to view/request annotation
This commit is contained in:
parent
68af0010aa
commit
acbb1aa944
2 changed files with 1 additions and 2 deletions
|
@ -140,7 +140,6 @@ class BaseView(GenericView, I18NView):
|
|||
icon = None
|
||||
modeName = 'view'
|
||||
isToplevel = False
|
||||
hideStatesPortlet = False
|
||||
|
||||
def __init__(self, context, request):
|
||||
context = baseObject(context)
|
||||
|
|
|
@ -50,7 +50,7 @@ statefulActions = ('classification_quality',
|
|||
|
||||
def registerStatesPortlet(controller, view, statesDefs,
|
||||
region='portlet_right', priority=98):
|
||||
if view.hideStatesPortlet:
|
||||
if view.viewAnnotations.get('hideStatesPortlet'):
|
||||
return
|
||||
cm = controller.macros
|
||||
stfs = [component.getAdapter(view.context, IStateful, name=std)
|
||||
|
|
Loading…
Add table
Reference in a new issue