cw 3.6 api update
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 20 Jan 2010 11:23:18 +0100
changeset 4283 b3c40ae2d045
parent 4282 149b33d22d87
child 4284 8e5dcb54fd8e
cw 3.6 api update
web/views/navigation.py
--- a/web/views/navigation.py	Wed Jan 20 10:14:14 2010 +0100
+++ b/web/views/navigation.py	Wed Jan 20 11:23:18 2010 +0100
@@ -222,7 +222,7 @@
     """paginate results if the view is paginable and we're not explictly told to
     display everything (by setting __force_display in req.form)
     """
-    if not (view.paginable or view.req.form.get('__force_display')):
+    if not (view.paginable or view._cw.form.get('__force_display')):
         do_paginate(view, rset, w or view.w, show_all_option, page_size)
 
 # monkey patch base View class to add a .paginate([...])