[Zope] dtml-in: number of items in current batch

Loren Stafford lstafford@morphics.com
Tue, 24 Apr 2001 14:30:28 -0700


I don't see any way to do it other than subtract from
sequence-step-end-index the product of the batch size and the number of
prior batches.

-- Loren

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ron
> Bickers
> Sent: Tuesday, April 24, 2001 13:51
> To: Loren Stafford; zope@zope.org
> Subject: RE: [Zope] dtml-in: number of items in current batch
>
>
> This gives me the index of the last item of the batch, but the index is
> relative to the entire sequence, not just the batch.  I need just
> the number
> of items in the current batch.  The ones listed in the ZQR / Zope
> Book don't
> help.  Any other ideas?
> _______________________
>
> Ron Bickers
> Logic Etc, Inc.
> rbickers@logicetc.com
>
>
> > -----Original Message-----
> > From: Loren Stafford [mailto:lstafford@morphics.com]
> > Sent: Tuesday, April 24, 2001 4:43 PM
> > To: Ron Bickers; zope@zope.org
> > Subject: RE: [Zope] dtml-in: number of items in current batch
> >
> >
> > This is what I've been using in our employee directory listing.
> Sure looks
> > unfamiliar, tho. Don't know where I found it.
> >
> > Found <dtml-var "_['sequence-step-end-index']+1"> items.
> >
> > OK. Now I find it in the ZQR. It's the end index of the current
> > batch. Look
> > in the ZQR for more variables.
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>