web/views/navigation.py
changeset 4335 1314772c1183
parent 4283 b3c40ae2d045
parent 4331 659ca14ab356
child 4336 45e5b8bd2f71
--- a/web/views/navigation.py	Fri Jan 22 14:40:29 2010 +0100
+++ b/web/views/navigation.py	Fri Jan 22 14:41:08 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._cw.form.get('__force_display')):
+    if view.paginable ant 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([...])