web/views/primary.py
changeset 4074 9cce43f52c61
parent 4073 03681ba6da0b
parent 4072 ead446e70c28
child 4104 7e478d7caf20
--- a/web/views/primary.py	Wed Dec 09 12:23:31 2009 +0100
+++ b/web/views/primary.py	Wed Dec 09 12:24:38 2009 +0100
@@ -256,7 +256,7 @@
         # because of that, we known that rset.printable_rql() will return
         # rql with no limit set anyway (since it's handled manually)
         if 'dispctrl' in self.cw_extra_kwargs:
-            limit = self.extra_kwargs['dispctrl'].get('limit')
+            limit = self.cw_extra_kwargs['dispctrl'].get('limit')
         else:
             limit = None
         if limit is None or self.cw_rset.rowcount <= limit: