-hereUrl = context.absolute_url()
-cart = sd.get('cart', None)
-
-infos = []
-for index, b in enumerate(batch) :
- path = '/'.join(b.getPath().split('/')[portalDepth:])
- p = b.getObject()
- if pptool :
- buyable = bool(pptool.getPrintingOptionsFor(p))
- if cart and cart.locked :
- buyable = False
- else :
- buyable = False
-
- d = {'href' : '%s/lightboxcontext/%s' % (hereUrl, path)
- ,'thumbUrl' : '%s/getThumbnail' % b.getURL()
- ,'thumbSize' : b.getThumbnailSize
- ,'title' : ('%s - %s' % (b.Title, b.Description)).strip(' -')
- ,'cmf_uid':b.cmf_uid
- ,'className':''
- ,'buyable' : buyable
- ,'o':b
- }
- infos.append(d)
-
-features = {}
-features['del'] = lambda b: '%s/remove_to_lightbox?uid=%s' % (hereUrl, b.cmf_uid)
-features['cart'] = lambda b : '%s/get_slide_buyable_items' % b.getURL()
-
-options['infos'] = infos
-options['batch'] = batch
-options['features'] = features