[Zope] Calling the del function from a DTML document/method

Small Business Services toolkit at magma.ca
Thu Jun 3 13:33:44 EDT 2004


From: "Asad Habib" <ahabib at engin.umich.edu>
> Hello. Is it possible to call the del function(this deletes
> single/multiple items from a list) from a DTML document/method. If so,
> what is the correct syntax for this? Thanks.

Call format to delete an object is:

<dtml-call "manage_delObjects([oid])">

Note: manage_delObjects expects a list of object ids, so you have two
options: (i) pass it a list variable (which contains a list of ids to be
deleted) or (ii) put a single variable/object id into a list.  The latter is
shown above.

HTH

Jonathan





More information about the Zope mailing list