comparison piecrust/data/paginator.py @ 316:eb958151c8dc

tests: Bad me, the tests were broken. Now they're fixed.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 28 Mar 2015 12:41:02 -0700
parents b7ab1b503510
children 498a917cd2d4
comparison
equal deleted inserted replaced
315:d1490028e211 316:eb958151c8dc
210 return f 210 return f
211 211
212 def _getPageUri(self, index): 212 def _getPageUri(self, index):
213 uri = self._uri 213 uri = self._uri
214 if index > 1: 214 if index > 1:
215 if not uri.endswith('/'): 215 if len(uri) > 0 and not uri.endswith('/'):
216 uri += '/' 216 uri += '/'
217 uri += str(index) 217 uri += str(index)
218 return uri 218 return uri
219 219
220 def _onIteration(self): 220 def _onIteration(self):