I have been able to add DTML documents to a folder using a python script(addDTMLDocument) but I can't find anywhere how to delete them using python. I can delete using manage_delObjects:method from main.dtml but I would like to use a python script. Can anyone help me? regards garry
You need to have the required permission to delete object. This means usually that you need to be Manager. One way out is to assign Manager as proxy to role to a Pythonscript. -aj --On Freitag, 20. Februar 2004 6:53 Uhr +0000 garry saddington <garry@joydiv.fsnet.co.uk> wrote:
I have been able to add DTML documents to a folder using a python script(addDTMLDocument) but I can't find anywhere how to delete them using python. I can delete using manage_delObjects:method from main.dtml but I would like to use a python script. Can anyone help me? regards garry
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
garry saddington wrote at 2004-2-20 06:53 +0000:
I have been able to add DTML documents to a folder using a python script(addDTMLDocument) but I can't find anywhere how to delete them using python. I can delete using manage_delObjects:method from main.dtml but I would like to use a python script. Can anyone help me?
Keep in mind: Everything, you can do via the ZMI, you can do in a Python Script. Especially, you can use "manage_delObjects" in your Python Script. Note, that this method (of the container!) needs a list (!) of ids to delete. -- Dieter
participants (3)
-
Andreas Jung -
Dieter Maurer -
garry saddington