Merge commit 'a4cb4d96face514924387d34746b3148848ac092' into zope-2.13
[Plinn.git] / skins / generic / hasWfActions.py
1 ##parameters=ob=None
2
3 if ob is None :
4 ob = context
5 wtool = context.portal_workflow
6 objectActions = filter(lambda a : a.has_key('id'), wtool.getActionsFor(ob))
7
8 if not wtool.getInfoFor(ob,'review_state','') == 'published' and not objectActions :
9 return True
10 else :
11 return False