web/views/navigation.py
changeset 2770 356e9d7c356d
parent 2650 18aec79ec3a3
child 2789 39712da6f397
--- a/web/views/navigation.py	Tue Aug 11 12:42:01 2009 +0200
+++ b/web/views/navigation.py	Tue Aug 11 13:01:56 2009 +0200
@@ -149,8 +149,8 @@
 def limit_rset_using_paged_nav(self, req, rset, w, forcedisplay=False,
                                show_all_option=True, page_size=None):
     if not (forcedisplay or req.form.get('__force_display') is not None):
-        nav = self.vreg['components'].select_object('navigation', req,
-                                      rset=rset, page_size=page_size)
+        nav = self.vreg['components'].select_or_none('navigation', req,
+                                                     rset=rset, page_size=page_size)
         if nav:
             # get boundaries before component rendering
             start, stop = nav.page_boundaries()