# HG changeset patch # User Sylvain Thénault # Date 1264156864 -3600 # Node ID 659ca14ab3566e17f4e5de382bf8a6a1238fef65 # Parent 8a6356914bd03f1039841b0339608a8105384c13 fix condition to paginate a result set diff -r 8a6356914bd0 -r 659ca14ab356 web/views/navigation.py --- a/web/views/navigation.py Thu Jan 21 16:58:40 2010 +0100 +++ b/web/views/navigation.py Fri Jan 22 11:41:04 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 view.paginable ant 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([...])