projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
85f27d2
)
bugfix : pour obtenir l'url d'un brain, c'est getURL et non absolute_url
author
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 9 Jul 2014 13:15:31 +0000
(15:15 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 9 Jul 2014 13:15:31 +0000
(15:15 +0200)
skins/getPhotosInfos.py
patch
|
blob
|
history
diff --git
a/skins/getPhotosInfos.py
b/skins/getPhotosInfos.py
index
15a1713
..
e77739f
100755
(executable)
--- a/
skins/getPhotosInfos.py
+++ b/
skins/getPhotosInfos.py
@@
-9,12
+9,12
@@
uidtool = getToolByName(context, 'portal_uidhandler')
features = {}
def toggleSelection(o, selected) :
if selected :
features = {}
def toggleSelection(o, selected) :
if selected :
- return '%s/remove_to_selection' % o.
absolute_url
()
+ return '%s/remove_to_selection' % o.
getURL
()
else :
else :
- return '%s/add_to_selection' % o.
absolute_url
()
+ return '%s/add_to_selection' % o.
getURL
()
features['select'] = toggleSelection
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
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 :
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 :
if cart and cart.locked :
buyable = False
else :