On 7/19/05, David Pratt <[EMAIL PROTECTED]> 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 _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )