From f336f84739528c3511c4e5e271f9108c4bb33273 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Thu, 28 Oct 2010 00:44:04 +0200 Subject: [PATCH] Support de la supression d'un portfolio. --- skins/lrservice.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/skins/lrservice.py b/skins/lrservice.py index fdebcad..8b56499 100644 --- a/skins/lrservice.py +++ b/skins/lrservice.py @@ -46,8 +46,8 @@ elif method == 'uploadPhoto' : uid = uidtool.register(photo) return '%s %s' % (uid, photo.absolute_url()) -elif method == 'deletePhoto' : - photo = uidtool.queryObject(fg('uid')) - if photo : - parent = photo.getParentNode() - parent.manage_delObjects([photo.getId()]) +elif method in ('deletePhoto', 'deletePortfolio') : + o = uidtool.queryObject(fg('uid')) + if o : + parent = o.getParentNode() + parent.manage_delObjects([o.getId()]) -- 2.20.1