Author: justi9
Date: 2010-05-10 17:09:25 -0400 (Mon, 10 May 2010)
New Revision: 3960
Modified:
mgmt/newdata/wooly/python/wooly/datatable.py
Log:
Python 2.5 doesn't have a start param in enumerate
Modified: mgmt/newdata/wooly/python/wooly/datatable.py
===================================================================
--- mgmt/newdata/wooly/python/wooly/datatable.py 2010-05-10 20:43:39 UTC (rev 3959)
+++ mgmt/newdata/wooly/python/wooly/datatable.py 2010-05-10 21:09:25 UTC (rev 3960)
@@ -238,7 +238,7 @@
count = self.table.count.get(session)
limit = self.table.header.limit.get(session)
- return [(x[1], x[0]) for x in enumerate(range(0, count, limit), 1)]
+ return [(x[1], x[0] + 1) for x in enumerate(range(0, count, limit))]
def render_title(self, session):
return "Page"
Show replies by date