Localisation.
[Plinn.git] / skins / generic / havePendingContents.py
1 ##parameters=
2 ctool = context.portal_catalog
3 checkPerm = context.portal_membership.checkPermission
4 from Products.CMFCore.permissions import ReviewPortalContent
5 for s in ['pending'] : # other states can be added
6 for b in ctool(review_state=s) :
7 if checkPerm(ReviewPortalContent, b.getObject()) :
8 return True
9 return False