projects
/
Portfolio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fc9e46f
)
Support de la supression d'un portfolio.
author
Benoît Pin
<benoit.pin@gmail.com>
Wed, 27 Oct 2010 22:44:04 +0000
(
00:44
+0200)
committer
Benoît Pin
<benoit.pin@gmail.com>
Wed, 27 Oct 2010 22:44:04 +0000
(
00:44
+0200)
skins/lrservice.py
patch
|
blob
|
history
diff --git
a/skins/lrservice.py
b/skins/lrservice.py
index
fdebcad
..
8b56499
100644
(file)
--- 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())
uid = uidtool.register(photo)
return '%s %s' % (uid, photo.absolute_url())
-elif method
== 'deletePhoto'
:
-
phot
o = uidtool.queryObject(fg('uid'))
- if
phot
o :
- parent =
phot
o.getParentNode()
- parent.manage_delObjects([
phot
o.getId()])
+elif method
in ('deletePhoto', 'deletePortfolio')
:
+ o = uidtool.queryObject(fg('uid'))
+ if o :
+ parent = o.getParentNode()
+ parent.manage_delObjects([o.getId()])