[Zope] Bug in ZTUtil.Batch

AP Meyer a.p.meyer at fel.tno.nl
Fri Mar 19 10:23:45 EST 2004


Hi Zopers

It seems that there is a bug in ZTUtil.Batch: when the batch should be 
the length of the batch and there are exactly as many orphans as there 
would fit on one page the length of the batch becomes size instead of 
size+orphans.

Here are the numbers:


no of
batches    start    end    orphan    length    sequence_length
1          1        12     3         12        12
1          1        10     3         10        13      <<< WRONG, 
end/length should be 13
2          1        10     3         10        14


So, there is a jump on the edge where there should be one batch of the 
length sequence_length == length+orphans. At that point 3 (in the above 
case) items disappear. I have looked at the code in Batch.py but not 
found the solution, yet. Who can find the bug and a solution?

thanks
Andre


-- 
------------------------------------------------------------------------------
The disclaimer that applies to e-mail from
TNO Physics and Electronics Laboratory
can be found on: http://www.tno.nl/disclaimer/email.html
------------------------------------------------------------------------------



More information about the Zope mailing list