web/component.py
branchstable
changeset 3607 a7c5e62c7e00
parent 3014 62ce5a139b52
child 3629 559cad62c786
child 3750 b7fa3d93640a
--- 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