projects
/
Plinn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
10bd7ab72888b91273f929f3a8a43f4c23a627cd
[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