- className = ''
- uid = getattr(p, 'cmf_uid', None)
- if uid is not None :
- uid = uid()
- absUrl = p.absolute_url()
- selected = selDict.has_key(uid)
- hiddenForAnonymous = p.hiddenForAnonymous()
- if pptool :
- buyable = bool(pptool.getPrintingOptionsFor(p))
- if cart and cart.locked :
- buyable = False
- else :
- buyable = False
-
- if selected :
- className = 'selected'
- if hiddenForAnonymous :
- className = 'hidden-slide'
-
- d = {'href' : absUrl
- ,'thumbUrl' : '%s/getThumbnail' % absUrl
- ,'thumbSize': p.getThumbnailSize()
- ,'title' : ('%s - %s' % (p.Title(), p.Description())).strip(' -')
- ,'selected' : selected
- ,'hiddenForAnonymous' : hiddenForAnonymous
- ,'cmf_uid' : uidtool.register(p)
- ,'buyable' : buyable
- ,'className': className
- ,'o' : p
- }
- infos.append(d)
+ className = ''
+ uid = getattr(p, 'cmf_uid', None)
+ # if uid is not None :
+ # uid = uid()
+ absUrl = p.getURL()
+ selected = selDict.has_key(uid)
+ hiddenForAnonymous = p.hiddenForAnonymous
+ if pptool :
+ buyable = bool(pptool.getPrintingOptionsFor(p))
+ if cart and cart.locked :
+ buyable = False
+ else :
+ buyable = False
+
+ if selected :
+ className = 'selected'
+ if hiddenForAnonymous :
+ className = 'hidden-slide'
+
+ d = {'href' : absUrl
+ ,'thumbUrl' : '%s/getThumbnail' % absUrl
+ ,'thumbSize': p.getThumbnailSize
+ ,'title' : ('%s - %s' % (p.Title, p.Description)).strip(' -')
+ ,'selected' : selected
+ ,'hiddenForAnonymous' : hiddenForAnonymous
+ ,'cmf_uid' : uidtool.register(p)
+ ,'buyable' : buyable
+ ,'className': className
+ ,'o' : p
+ }
+ infos.append(d)