From 13efbd7914bcd4ac20b577c97941943943feea7b Mon Sep 17 00:00:00 2001
From: =?utf8?q?Benoi=CC=82t=20Pin?= <pin@cri.ensmp.fr>
Date: Wed, 9 Jul 2014 15:15:31 +0200
Subject: [PATCH] =?utf8?q?bugfix=C2=A0:=20pour=20obtenir=20l'url=20d'un=20?=
 =?utf8?q?brain,=20c'est=20getURL=20et=20non=20absolute=5Furl?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

---
 skins/getPhotosInfos.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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 :
-- 
2.20.1