Author: justi9
Date: 2007-11-26 22:37:34 -0500 (Mon, 26 Nov 2007)
New Revision: 1368
Modified:
mgmt/cumin/python/cumin/widgets.py
Log:
Fixes some slightly incorrect math that was preventing the paginator from
functioning.
Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py 2007-11-27 03:20:12 UTC (rev 1367)
+++ mgmt/cumin/python/cumin/widgets.py 2007-11-27 03:37:34 UTC (rev 1368)
@@ -278,8 +278,8 @@
return self.param.set(session, value)
def get_items(self, session, object):
- return range(0, ceil(len(object) / 20) - 1)
-
+ return range(0, int(ceil(len(object) / float(2))))
+
def render_item_href(self, session, page):
branch = session.branch()
self.set(branch, page)