Édition de l'url du serveur Solr.
[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