##parameters=portfolio
from Products.Plinn.PloneMisc import Batch
from Products.CMFCore.utils import getToolByName
-from Products.CMFCore.permissions import ReviewPortalContent
+from Products.CMFCore.permissions import ReviewPortalContent, ModifyPortalContent
mtool = getToolByName(context, 'portal_membership')
pptool = getToolByName(context, 'portal_photo_print', None)
uidtool = getToolByName(context, 'portal_uidhandler')
if mtool.checkPermission(ReviewPortalContent, context) :
features['hideAnonymous'] = True
+if mtool.checkPermission(ModifyPortalContent, context) :
+ features['checkbox'] = True
req = context.REQUEST
pho_start = req.get('pho_start', 0)
batch = Batch(portfolio.listNearestFolderContents(contentFilter={'portal_type' : ['Photo']}, sorted=True),
- 50, pho_start, orphan=5, quantumleap=1, b_start_str='pho_start')
+ context.default_batch_size, pho_start, orphan=5, quantumleap=1, b_start_str='pho_start')
infos = []