Erm, ok, perhaps I should have said, given a function objectIds that is valid within the current context. The absense of a function is not a valid argument against DTML or in favour of ZPT. However, while we are on the subject, I am quite sick of ZPT telling me that the property I am going to use is not currently available in the current context, it is not up to my language to tell me when I should write my transient fuctions in a self modifying application. (This is an example, but it is a situation that has arrisen) Adrian... ----- Original Message ----- From: "Steve Drees" <drees@rangebroadband.com> To: "Adrian Hungate" <adrian@haqa.co.uk>; "Zope@Zope. Org" <zope@zope.org> Sent: Tuesday, May 07, 2002 9:51 PM Subject: RE: [Zope-dev] Re: ZClasses useful! [Was: ZMI / JavaScript brainstorm]
Ok, ZPT is easier that DTML? How do you code this in ZPT?
<dtml-in objectIds() sort=id> <dtml-var sequence-item> </dtml-in>
Zope Error Zope has encountered an error while publishing this resource.
Error Type: KeyError Error Value: objectIds()
This is precisely why ZPT is easier than DTML.