- selection = req.SESSION.get('objects_selection', [])
-
-start = req.get('b_start', 0)
-brains = [uidh.getBrain(uid) for uid in selection]
-batch = Batch(brains, context.default_batch_size, start, orphan=1, quantumleap=1)#, b_start_str='pho_start')
-cart = req.SESSION.get('cart', None)
-
-infos = []
-for index, b in enumerate(batch) :
- path = b.getPath().split('/')
- path.insert(portalDepth, 'selectioncontext')
- p = b.getObject()
- if pptool :
- buyable = bool(pptool.getPrintingOptionsFor(p))
- if cart and cart.locked :
- buyable = False
- else :
- buyable = False
-
- d = {'href': toUrl('/'.join(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_selection' % b.getURL()
-features['cart'] = lambda b : '%s/get_slide_buyable_items' % b.getURL()