X-Git-Url: https://scm.cri.mines-paristech.fr/git/Portfolio.git/blobdiff_plain/4f28cd0f4ccb446c3cdeadcd4d56e681ca38e70c..a21714242076697ef8c9b4c61c1e229bb7afa352:/skins/getPhotoContextInfos.py diff --git a/skins/getPhotoContextInfos.py b/skins/getPhotoContextInfos.py index f332b2a..71b4aea 100755 --- a/skins/getPhotoContextInfos.py +++ b/skins/getPhotoContextInfos.py @@ -3,9 +3,11 @@ from ZTUtils import make_query as mq from Products.CMFCore.utils import getToolByName pptool = getToolByName(context, 'portal_photo_print', None) uidtool = getToolByName(context, 'portal_uidhandler') +utool = getToolByName(context, 'portal_url') +portal = utool.getPortalObject() form = context.REQUEST.form portfolio = context.getParentNode() -bsize = form.get('b_size',20) +bsize = portal.getProperty('default_batch_size', 20) infos = [] index = 0