web/views/navigation.py
changeset 4265 0912f111b028
parent 4252 6c4f109c2b03
child 4283 b3c40ae2d045
--- a/web/views/navigation.py	Tue Jan 19 12:34:52 2010 +0100
+++ b/web/views/navigation.py	Tue Jan 19 14:41:19 2010 +0100
@@ -197,9 +197,9 @@
     """write pages index in w stream (default to view.w) and then limit the result
     set (default to view.rset) to the currently displayed page
     """
-    req = view.req
+    req = view._cw
     if rset is None:
-        rset = view.rset
+        rset = view.cw_rset
     nav = req.vreg['components'].select_or_none(
         'navigation', req, rset=rset, page_size=page_size)
     if nav: