[Checkins] SVN: plone.z3cform/branches/plip12234-batching/plone/z3cform/crud/crud.py batch starts with 0 not with 1
Tom Gross
cvs-admin at zope.org
Tue Jan 3 13:13:36 UTC 2012
Log message for revision 123913:
batch starts with 0 not with 1
Changed:
U plone.z3cform/branches/plip12234-batching/plone/z3cform/crud/crud.py
-=-
Modified: plone.z3cform/branches/plip12234-batching/plone/z3cform/crud/crud.py
===================================================================
--- plone.z3cform/branches/plip12234-batching/plone/z3cform/crud/crud.py 2012-01-03 12:10:55 UTC (rev 123912)
+++ plone.z3cform/branches/plip12234-batching/plone/z3cform/crud/crud.py 2012-01-03 13:13:36 UTC (rev 123913)
@@ -225,7 +225,7 @@
items = self.context.get_items()
batch_size = self.context.batch_size or sys.maxint
page = int(self.request.get('%spage' % self.prefix, 0))
- return Batch.fromPagenumber(items, page, batch_size)
+ return Batch.fromPagenumber(items, batch_size, page+1)
def render_batch_navigation(self):
bv = CrudBatchView(self.context, self.request)
More information about the checkins
mailing list