[Zope-dev] dtml-in: next-batches

Dieter Maurer dieter@handshake.de
Thu, 8 Mar 2001 20:50:20 +0100 (CET)


Brett Carter writes:
 > I tried accessing keys off the 'data' object, and I just get an
 > 'unathorized' error.
 >     Dieter> The attributes your are looking for are in fact keys
 >     Dieter> of the mapping 'data'.
Sorry for the misleading answer.

"data" is not supposed to be used directly.

"next-batches" returns a sequence of
"DocumentTemplate.DT_In_SV.sequence_variables".
Each "sequence_variables" object behaves like a mapping
and exposes the items of its "data" member (and some more
items derived from them), among them
"batch-start-index", 'batch-end-index', and 'batch-size'.


Dieter