web/views/navigation.py
changeset 4072 ead446e70c28
parent 4059 f1da1a7ef29b
child 4252 6c4f109c2b03
--- a/web/views/navigation.py	Wed Dec 09 12:20:05 2009 +0100
+++ b/web/views/navigation.py	Wed Dec 09 12:22:21 2009 +0100
@@ -174,8 +174,8 @@
 
 def paginate(view, show_all_option=True, w=None, page_size=None, rset=None):
     if rset is None:
-        rset = view.rset
-    limit_rset_using_paged_nav(view, view.req, rset, w or view.w,
+        rset = view.cw_rset
+    limit_rset_using_paged_nav(view, view._cw, rset, w or view.w,
                                not view.need_navigation, show_all_option,
                                page_size=page_size)
 View.paginate = paginate