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
d = {'src': '%s/getThumbnail' % purl
,'href': purl
,'thumbSize':size
- ,'title' : p.Title()
+ ,'title' : p.Description()
+ ,'displayed' : p == context
,'className': (selected and 'selected' or '') + ((p == context) and ' displayed' or '')
, 'index': i
}