fix stupid typo ... stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Fri, 22 Jan 2010 12:25:54 +0100
branchstable
changeset 4332 70943fcff808
parent 4331 659ca14ab356
child 4336 45e5b8bd2f71
child 4398 4e7e74918631
child 4416 94a3a2dec8fc
fix stupid typo ...
web/views/navigation.py
--- a/web/views/navigation.py	Fri Jan 22 11:41:04 2010 +0100
+++ b/web/views/navigation.py	Fri Jan 22 12:25:54 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.req.form.get('__force_display'):
+    if view.paginable and not view.req.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([...])