[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

Martijn Pieters mj@digicool.com
Sat, 10 Jun 2000 13:18:41 +0200


On Sat, Jun 10, 2000 at 12:57:10PM +0200, Dieter Maurer wrote:
> 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.

Hi Dieter,

Could you put your patch into the Collector?
 
  http://classic.zope.org:8080/Collector

This way we will not forget about your fix. Thanks!

-- 
Martijn Pieters
| Software Engineer    mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope       http://www.zope.org/
|   The Open Source Web Application Server
---------------------------------------------