[ZCM] [ZC] 217/ 2 Reject "Batch.py"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Tue, 12 Feb 2002 15:51:41 -0500


Issue #217 Update (Reject) "Batch.py"
 Status Rejected, Zope/bug low
To followup, visit:
  http://collector.zope.org/Zope/217

==============================================================
= Reject - Entry #2 by ajung on Feb 12, 2002 3:50 pm

 Status: Pending => Rejected

default for orphan was 3 in Zope 2.4.X and is now 0 in Zope 2.5.0
(DT_In.py).

Why are you opening a new issue instead of replying to 
the already open issue ??

 - aj 
________________________________________
= Request - Entry #1 by Anonymous User on Feb 12, 2002 3:43 pm

After some more debugging I'm now quite sure my problem is caused by the fact that 'orphan' is set to 3 somewhere.  
At the third batch (which shows item 5 and 6) LazyPrevBatch calls Batch.__init__ with parameters (sequence,2,-1,4,3,0). In function Opt these parameters result in execution of the branch 'elif end>0:'.
There 'start' is set to 3 (end(=4) + 1 - size(=2). 
Then 'if start - 1 < orphan(=3): start=1' sets 'start' to 1.

Because 'start' is set 1 here, in __init__ 'self.length' is set to 4 (self.end(=4) minus self.first(=0)). 

At the next batch, which shows item 7 and 8, 'end' is 6 and the problem does not occur. 

Remains the question: where and why is 'orphan' set to 3 ??


==============================================================