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
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
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
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
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));