appobject.py
changeset 2770 356e9d7c356d
parent 2658 5535857eeaa5
child 2787 ece5bbed3cd2
--- a/appobject.py	Tue Aug 11 12:42:01 2009 +0200
+++ b/appobject.py	Tue Aug 11 13:01:56 2009 +0200
@@ -377,8 +377,8 @@
         # try to get page boundaries from the navigation component
         # XXX we should probably not have a ref to this component here (eg in
         #     cubicweb.common)
-        nav = self.vreg['components'].select_object('navigation', self.req,
-                                                    rset=self.rset)
+        nav = self.vreg['components'].select_or_none('navigation', self.req,
+                                                     rset=self.rset)
         if nav:
             start, stop = nav.page_boundaries()
             rql = self._limit_offset_rql(stop - start, start)