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

Small Business Services toolkit at magma.ca
Thu Jun 3 14:02:50 EDT 2004


From: "Asad Habib" <ahabib at engin.umich.edu>
> Hello. Thanks for your help but what I was referring to is the Python
> function 'del'. Just like 'append' can be called from a DTML
> method/document to add to a variable of type list (e.g. <dtml-call
> "myList.append()">), can 'del' be called in a similar way?

I think what you are looking for is:

<dtml-call "myList.remove(avar)">

where 'avar' contains the item that you want removed from the list (myList).


Jonathan






More information about the Zope mailing list