[Zope-dev] Re: ZClasses useful! [Was: ZMI / JavaScript brainstorm]

Shane Hathaway shane@zope.com
Tue, 07 May 2002 17:35:55 -0400


Adrian Hungate wrote:
> Ok, ZPT is easier that DTML? How do you code this in ZPT?
> 
> <dtml-in objectIds() sort=id>
> <dtml-var sequence-item>
> </dtml-in>

You have some good points, but there's a certain irony in the fact that 
the above code won't work.  You either forgot to quote the "objectIds()" 
expression, or it shouldn't have parentheses, illustrating the first 
ugly thing most people run into when learning DTML. :-)

Nevertheless, as you said, ZPT really does need some better way to 
implement batching and sorting.  The need is too common to require 
external scripts or big Python expressions to do it.

Shane