[Zope] Programmatically delete an object
Jonathan Hobbs
toolkit at magma.ca
Mon Dec 13 19:58:19 EST 2004
From: "jlegris" <jlegris at telus.net>
> I am having trouble finding an example of how to programmatically delete
> an object from a folder in Zope.
> Any info or direction in this regards would be greatly appreciated.
DTML:
<dtml-call "manage_delObjects(pids)">
Python
context.manage_delObjects(pids)
where 'pids' is a list containing the object ids to be deleted (note: if you
only want to delete one object then pass either a list with only one
element, or a simple variable as a list: eg. [pid] )
HTH
Jonathan
More information about the Zope
mailing list