Upgrade de swfobject, de 1.5 à 2.2.
[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