projects
/
Portfolio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ajout de la supression des photos.
[Portfolio.git]
/
skins
/
lrservice.py
diff --git
a/skins/lrservice.py
b/skins/lrservice.py
index
821bad1
..
fad05e8
100644
(file)
--- a/
skins/lrservice.py
+++ b/
skins/lrservice.py
@@
-43,3
+43,9
@@
elif method == 'uploadPhoto' :
photo = portfolio[photoId]
uid = uidtool.register(photo)
return '%s %s' % (uid, photo.absolute_url())
photo = portfolio[photoId]
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()])