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
|
icon = None
|
||||||
modeName = 'view'
|
modeName = 'view'
|
||||||
isToplevel = False
|
isToplevel = False
|
||||||
hideStatesPortlet = False
|
|
||||||
|
|
||||||
def __init__(self, context, request):
|
def __init__(self, context, request):
|
||||||
context = baseObject(context)
|
context = baseObject(context)
|
||||||
|
|
|
@ -50,7 +50,7 @@ statefulActions = ('classification_quality',
|
||||||
|
|
||||||
def registerStatesPortlet(controller, view, statesDefs,
|
def registerStatesPortlet(controller, view, statesDefs,
|
||||||
region='portlet_right', priority=98):
|
region='portlet_right', priority=98):
|
||||||
if view.hideStatesPortlet:
|
if view.viewAnnotations.get('hideStatesPortlet'):
|
||||||
return
|
return
|
||||||
cm = controller.macros
|
cm = controller.macros
|
||||||
stfs = [component.getAdapter(view.context, IStateful, name=std)
|
stfs = [component.getAdapter(view.context, IStateful, name=std)
|
||||||
|
|
Loading…
Add table
Reference in a new issue