backport stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 22 Jan 2010 14:42:01 +0100
changeset 4336 45e5b8bd2f71
parent 4335 1314772c1183 (current diff)
parent 4332 70943fcff808 (diff)
child 4337 27ea69e2cfea
backport stable
web/views/navigation.py
--- a/web/views/navigation.py	Fri Jan 22 14:41:08 2010 +0100
+++ b/web/views/navigation.py	Fri Jan 22 14:42:01 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 view.paginable ant not view._cw.form.get('__force_display'):
+    if view.paginable and not 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([...])