[Checkins] SVN: z3c.batching/trunk/src/z3c/batching/batch.py	optimization
    Jean-Francois Roche 
    jfroche at jfroche.be
       
    Fri Aug 20 10:50:38 EDT 2010
    
    
  
Log message for revision 115843:
  optimization
Changed:
  U   z3c.batching/trunk/src/z3c/batching/batch.py
-=-
Modified: z3c.batching/trunk/src/z3c/batching/batch.py
===================================================================
--- z3c.batching/trunk/src/z3c/batching/batch.py	2010-08-20 14:47:10 UTC (rev 115842)
+++ z3c.batching/trunk/src/z3c/batching/batch.py	2010-08-20 14:50:38 UTC (rev 115843)
@@ -73,7 +73,7 @@
     @property
     def number(self):
         """See interfaces.IBatch"""
-        return self.start / self.size + 1
+        return self.index + 1
 
     @property
     def total(self):
    
    
More information about the checkins
mailing list