Solr optionnel.
[Plinn.git] / skins / control / delete_object.py
1 ##parameters=
2 parent = context.aq_parent
3 req = context.REQUEST
4 assert req.method == 'POST', "This script works only in POST http method"
5
6 req.RESPONSE.setHeader('Content-Type', 'text/xml;charset=utf-8')
7
8 try :
9 parent.manage_delObjects(context.id)
10 except Exception, e :
11 return '<error>%s</error>' % str(e)
12
13 return '<done/>'