I tried accessing keys off the 'data' object, and I just get an 'unathorized' error. -Brett
"Dieter" == Dieter Maurer <dieter@handshake.de> writes:
Dieter> Brett Carter writes: >> I'm running Zope 2.2.2, and I'm trying to use the batching stuff for >> the dtml-in tag, however, I can't seem to access any attributes off >> the 'next-batches' or 'previous-batches' mapping object that's >> supposed to be available, with the attributes 'batch-start-index', >> 'batch-end-index', and 'batch-size'. >> .... >> I wrote an external method to dir the 'next-batches' object, and it >> seems the only attributes available are: >> ['data', 'items', 'query_string', 'start_name_re'] Dieter> The attributes your are looking for are in fact keys Dieter> of the mapping 'data'. Dieter> Dieter
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
participants (2)
-
Brett Carter -
Dieter Maurer