projects
/
Plinn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Restauration de la localisation des détails des contenus pour ckeditor (suite au...
[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