X-Git-Url: https://svn.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/88f9f2dde90223a13f97e2787e342b389457064e..b6667d7da5760dc6129c14f785035d18916ca2f7:/skins/getPhotosInfos.py diff --git a/skins/getPhotosInfos.py b/skins/getPhotosInfos.py index 15a1713..e77739f 100755 --- a/skins/getPhotosInfos.py +++ b/skins/getPhotosInfos.py @@ -9,12 +9,12 @@ uidtool = getToolByName(context, 'portal_uidhandler') features = {} def toggleSelection(o, selected) : if selected : - return '%s/remove_to_selection' % o.absolute_url() + return '%s/remove_to_selection' % o.getURL() else : - return '%s/add_to_selection' % o.absolute_url() + return '%s/add_to_selection' % o.getURL() features['select'] = toggleSelection -features['cart'] = lambda o : '%s/get_slide_buyable_items' % o.absolute_url() +features['cart'] = lambda o : '%s/get_slide_buyable_items' % o.getURL() if mtool.checkPermission(ReviewPortalContent, context) : features['hideAnonymous'] = True @@ -45,7 +45,7 @@ for p in batch : selected = selDict.has_key(uid) hiddenForAnonymous = p.hiddenForAnonymous if pptool : - buyable = bool(pptool.getPrintingOptionsFor(p)) + buyable = bool(pptool.getPrintingOptionsFor(p.getObject())) if cart and cart.locked : buyable = False else :