projects
/
Plinn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
On ne sait jamais ce que le hasard nous réserve :-D.
[Plinn.git]
/
skins
/
generic
/
getPendingDocuments.py
1
##parameters=
2
ctool
=
context
.
portal_catalog
3
checkPerm
=
context
.
portal_membership
.
checkPermission
4
res
= []
5
for
s
in
[
'pending'
] :
# other states can be added
6
res
.
extend
(
ctool
(
review_state
=
s
))
7
8
pend
= []
9
for
b
in
res
:
10
ob
=
b
.
getObject
()
11
if
checkPerm
(
'Review portal content'
,
ob
) :
12
pend
.
append
(
ob
)
13
14
return
pend