Re: [Zope] ZTUtils.Iterator value in ZPT

2005-07-20 Thread Chris Withers
David Pratt wrote: div tal:define = tabindex python:Iterator(range(100)); div .. html form contents .. a field input tal:attributes=tabindex/next ... ... another field /div What are you actually trying to do here? Would

Re: [Zope] ZTUtils.Iterator value in ZPT

2005-07-20 Thread David Pratt
Hi Chris. Thanks for your reply. My understanding (which may be flawed) is that ZTUtils iterator provides values of a sequence as you iterate over them with a repeat statement. I believe what I am trying to do is sensible. I have looked at the api and can't seem to get the right magic using

[Zope] ZTUtils.Iterator value in ZPT

2005-07-19 Thread David Pratt
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

Re: [Zope] ZTUtils.Iterator value in ZPT

2005-07-19 Thread Peter Bengtsson
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

Re: [Zope] ZTUtils.Iterator value in ZPT

2005-07-19 Thread David Pratt
Hi Peter. Thanks for your reply. I think I am getting closer with this but still not quite right. It appears I am calling Iterator right, because it gets an Iterator instance and now getting number 1 but that doesn't tell me much. div tal:define = tabindex python:Iterator(range(100));