[Zope] [Ann] Zope 2.1.6: <dtml-in> patch It provides complete batching info at sequence start *and* end It provides complete batching info at sequence start *and* end

Dieter Maurer dieter@handshake.de
Sat, 10 Jun 2000 12:57:10 +0200 (CEST)


The Zope 2.1.6 <dtml-in> provides batching information for
the previous batch at the start and end of the sequence.
Batching information for the following batch, however, is
only available at sequence end.
This makes it difficult to provide uniform navigation
(to previous/next batch) both before and after the
sequence.

Moreover, if the current batch size is "1" (e.g. size=1), then
<dtml-in> provides batch info for the following batch
only for the sequence's first element. For all other
elements only previous batch information but no following
batch information is available. This is a bug.

<dtml-in> provides modes "previous" and "next" that do not
render the sequence but only provide the respective batching
info.
The problem with this solution is redundancy: the same
parameters must be given to "<dtml-in previous>", "<dtml-in>"
and "<dtml-in next>" to obtain reliable information.
This is error prone and makes it difficult to separate
navigation (for different sequences with different <dtml-in> parameters)
in a general navigation method.


The patch at

	URL:http:www.handshake.de/~dieter/pyprojects/zope/dt_in.pat

provides uniform batching information both at the start and
at the end of the sequence. A batch size of 1 is correctly
handled.


Dieter