[Zope] Re: [Support] Re: Collector #2244: Zope, sequence-

Chris Withers chrisw@nipltd.com
Thu, 07 Jun 2001 17:11:30 +0100


Evan Simpson wrote:
> 
> From: "Chris Withers" <chrisw@nipltd.com>
> > > Then you would probably find the Batch class from ZTUtils valuable.
> >
> > Is it documented anywhere? Can I import it into a PythonScript?
> 
> Documentation is minimal, as yet, but it's *very* simple.
> 
> from ZTUtils import Batch
> b = Batch(seq, 25, start=context.REQUEST.get('start', 0))
> 
> (after installing it, of course)

Cool :-)

I assume it respects laziness?

cheers,

Chris

PS: Any chance it could be moved to the core?