X-Git-Url: https://svn.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/2ef5bb98238c65fc8927d95cc97bd2fa0de3142c..20d32cad15428a0a8d893a8e248d925b004df2c8:/skins/lightboxcontext.py?ds=inline diff --git a/skins/lightboxcontext.py b/skins/lightboxcontext.py index d031b1a..fcc86f6 100644 --- a/skins/lightboxcontext.py +++ b/skins/lightboxcontext.py @@ -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] @@ -71,8 +71,9 @@ for i, uid in enumerate(lightboxUids) : d = {'src': '%s/getThumbnail' % b.getURL() ,'href': href ,'thumbSize': size - ,'title' : b.Title + ,'title' : b.Description ,'className': className + ,'displayed' : uid == photouid , 'index': i } infos.append(d)