web/views/primary.py
changeset 4072 ead446e70c28
parent 4004 c52619c738a5
child 4074 9cce43f52c61
--- a/web/views/primary.py	Wed Dec 09 12:20:05 2009 +0100
+++ b/web/views/primary.py	Wed Dec 09 12:22:21 2009 +0100
@@ -255,8 +255,8 @@
         # nb: rset retreived using entity.related with limit + 1 if any
         # 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.extra_kwargs:
-            limit = self.extra_kwargs['dispctrl'].get('limit')
+        if 'dispctrl' in self.cw_extra_kwargs:
+            limit = self.cw_extra_kwargs['dispctrl'].get('limit')
         else:
             limit = None
         if limit is None or self.cw_rset.rowcount <= limit: