[Zope] ZTUtils.Iterator value in ZPT

Peter Bengtsson peterbe at gmail.com
Tue Jul 19 18:18:22 EDT 2005


On 7/19/05, David Pratt <fairwinds at eastlink.ca> wrote:
> I want to intialize the value of ZTUtils.Iterator and use the value
> to increment tabindex attribute  in my ZPT for forms in CMF
> 
> Something like:
> 
> <div tal:define iterator python:modules['ZTUtils'].Iterator; >
>         <div>

Don't you need to create it with a sequence like
<div tal:define iterator python:modules['ZTUtils'].Iterator(range(100)); >
-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com


More information about the Zope mailing list