Author: justi9
Date: 2010-07-06 14:25:37 -0400 (Tue, 06 Jul 2010)
New Revision: 4080
Modified:
mgmt/newdata/wooly/python/wooly/datatable.py
Log:
Display a maximum of 20 page links
Modified: mgmt/newdata/wooly/python/wooly/datatable.py
===================================================================
--- mgmt/newdata/wooly/python/wooly/datatable.py 2010-07-06 18:16:21 UTC (rev 4079)
+++ mgmt/newdata/wooly/python/wooly/datatable.py 2010-07-06 18:25:37 UTC (rev 4080)
@@ -238,6 +238,8 @@
count = self.table.count.get(session)
limit = self.table.header.limit.get(session)
+ count = min(count, 20 * limit)
+
return [(x[1], x[0] + 1) for x in enumerate(range(0, count, limit))]
def render_title(self, session):