[Zope] dtml-in size error

Tino Wildenhain tino@wildenhain.de
Wed, 29 Mar 2000 01:03:11 +0200


hi Mauricio,



mauricio_sl@uol.com.br wrote:
> 
> This one goes especialy to ho write zope.
> 
> I have found that the dtml-in has a problem when you specify a batch-size that is less than the double of the length of the input list.
> Ex.:
> a list of 6 itens:
> when size is 3, dtml-in returns 3 itens, correct. (3*2 <= 6) = true
> when size is 4, dtml-in returns 6 itens, error. (4*2 <= 6) = false
> 
> Is this a bug?
This works for me (tested right at the moment with Zope 2.10)

<ul>
<dtml-in "1,2,3,4,5,6" size="4">
<li><dtml-var sequence-item>
</dtml-in>
</ul>

best regards
Tino Wildenhain