Taille du batch reprise dans les paramètres globaux du portail.
[Portfolio.git] / skins / lightboxcontext.py
index d031b1a..9458974 100644 (file)
@@ -2,7 +2,6 @@
 from Products.CMFCore.utils import getToolByName
 from Products.Portfolio.utils import translate
 def _(message) : return translate(message, context).encode('utf-8')
-bsize = 20
 options = {}
 
 uidh = getToolByName(context, 'portal_uidhandler')
@@ -17,6 +16,7 @@ req = context.REQUEST
 toUrl = req.physicalPathToURL
 resp = req.RESPONSE
 selDict = req.SESSION.get('objects_selection_dict', {})
+bsize = portal.getProperty('default_batch_size', 20)
 
 if traverse_subpath[-1] == 'photo_view_ajax' :
     photoSubPath = traverse_subpath[:-1]