Déplacement pour eggification.
[Plinn.git] / Products / Plinn / skins / generic / hasWfActions.py
diff --git a/Products/Plinn/skins/generic/hasWfActions.py b/Products/Plinn/skins/generic/hasWfActions.py
new file mode 100644 (file)
index 0000000..10bd7ab
--- /dev/null
@@ -0,0 +1,11 @@
+##parameters=ob=None
+
+if ob is None :
+       ob = context
+wtool = context.portal_workflow
+objectActions = filter(lambda a : a.has_key('id'), wtool.getActionsFor(ob))
+
+if not wtool.getInfoFor(ob,'review_state','') == 'published' and  not objectActions :
+       return True
+else :
+       return False
\ No newline at end of file