[Zope] deleting objects from DTML or scripts

Dieter Maurer dieter at handshake.de
Fri Feb 20 17:41:50 EST 2004


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



More information about the Zope mailing list