[Zope] ZTUtils.Iterator value in ZPT

David Pratt fairwinds at eastlink.ca
Tue Jul 19 15:36:00 EDT 2005


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>
		.. html form contents
                    .. a field
                    <input tal:attributes="tabindex 
python:Iterator.next() ...
	         ... etc, etc.	
	</div>
</div>

The first part gives me an iterator object.  How do I get its value as 
an integer?


More information about the Zope mailing list