Hi,

First, I don't post to this list normally; is it the best place to
discuss an apparent bug?  

Anyway, the lowdown:

If you iterate over a list with a batch size of 1, it messes up
towards the end of the sequence.  For example, the following code:

 <dtml-call "REQUEST.set('hoo',(1,2,3,4))">
   <dtml-in hoo> 
     calling &lt;dtml-in hoo size=1 start=<dtml-var sequence-item>&gt;:<br>
     <dtml-in hoo size=1 start=sequence-item> 
       <dtml-var sequence-item>
     </dtml-in> <hr>
 </dtml-in>

produces the following output:

 calling <dtml-in hoo size=1 start=1>:
 1 

 calling <dtml-in hoo size=1 start=2>:
 2 3 4 

 calling <dtml-in hoo size=1 start=3>:
 3 4 

 calling <dtml-in hoo size=1 start=4>:
 4

That's not the behaviour I'd expect.  Can anyone confirm this is a
bug? 

Cheers,

seb 

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to