[ZPT] max values on repeat

Evan Simpson evan@zope.com
Wed, 24 Oct 2001 14:23:15 -0400


alex@quad.com.ar wrote:

> hi there,
> 
> in dtml-in we have a total-var, count-var, min-var, max-var and so on...
> I'm particular interested on max-var where it grabs the maxium value of var
> in the iteration.
> Is there anything like it on ZPT ?
> 
> so far I'm using python list comprehensions to perform a lookup... like:
> max ( [x['value'] for x in myList] )

No, nothing like that yet.  I like your solution.

Cheers,

Evan @ Zope