Hi, I've created a ZClass in a product and then written dtml methods that allow users to make new objects of the class using manage_addProduct.. and can edit the properties of a given object using manage_changeProperties. But I can't anywhere find the appropriate method call for deleting objects from their container via a dtml method, can anyone help? thanks in advance Sandy Britain
Sandy, How's things in sunny Bangor? You can delete objects by passing a list of things to delete to manage_delObjects: manage_delObjects(ids=['Thing to delete']) You can of course pass multiple ones (but you knew that eh!). Phil phil.harris@zope.co.uk aka harrisp2@cf.ac.uk ----- Original Message ----- From: "Sandy Britain" <iss01d@bangor.ac.uk> To: <zope@zope.org> Sent: Tuesday, May 22, 2001 3:16 AM Subject: [Zope] deleting objects from a dtml method
Hi,
I've created a ZClass in a product and then written dtml methods that allow users to make new objects of the class using manage_addProduct.. and can edit the properties of a given object using manage_changeProperties.
But I can't anywhere find the appropriate method call for deleting objects from their container via a dtml method,
can anyone help?
thanks in advance
Sandy Britain
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Phil Harris -
Sandy Britain