author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Wed, 07 Oct 2009 19:22:34 +0200 | |
branch | stable |
changeset 3607 | a7c5e62c7e00 |
parent 3606 | 8326aceecb46 |
child 3608 | 5a46e68c3d3c |
web/component.py | file | annotate | diff | comparison | revisions |
--- a/web/component.py Wed Oct 07 19:15:43 2009 +0200 +++ b/web/component.py Wed Oct 07 19:22:34 2009 +0200 @@ -106,6 +106,8 @@ start = int(self.req.form[self.start_param]) except KeyError: start, stop = 0, self.page_size + if start >= len(self.rset): + start, stop = 0, self.page_size self.starting_from = start return start, stop