[Zope] Re: ZTUtils.Iterator value in ZPT

Chris Withers chris at simplistix.co.uk
Thu Jul 21 04:00:39 EDT 2005


David Pratt wrote:
> Thanks Tres.  The 1's are explained for sure but I can't see a always 
> doing the job for this.  What I need is an object that keeps track of 
> the last number given to it so it will supply the next based on its 
> state.  For use in a flat form with say a dozen fields you are not 
> repeating over each field but still you need an incrementing tabindex 
> value.

Ah, I see what you're after, something akin to an SQL sequence, right?
Well, Iterator ain't that ;-)

What's so horrible about just putting these tabindexes in by hand?

Your code would certainly execture faster...

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope mailing list