[ZPT] max values on repeat

Geir Bækholt Geir Bækholt
Wed, 24 Oct 2001 20:28:12 +0200


Hello alex, 

Wednesday, October 24, 2001, 20:11:07, you wrote:

aqca> hi there,

aqca> in dtml-in we have a total-var, count-var, min-var, max-var and so on...
aqca> I'm particular interested on max-var where it grabs the maxium value of var
aqca> in the iteration.
aqca> Is there anything like it on ZPT ?

aqca> so far I'm using python list comprehensions to perform a lookup... like:
aqca> max ( [x['value'] for x in myList] )


I can only point you in the right direction quickly:

you have to check out ZTUtils. In the "iterator" or "batch" parts..
Not much documentation on them yet, though..


-- 
Geir Bækholt                       web-developer
geirh@funcom.com             funcom oslo | webdev-team