web/views/basetemplates.py
branchtls-sprint
changeset 872 78f03d6a1505
parent 832 8e06873d80d3
child 939 ad72e06320e2
--- a/web/views/basetemplates.py	Thu Feb 19 23:31:43 2009 +0100
+++ b/web/views/basetemplates.py	Thu Feb 19 23:32:46 2009 +0100
@@ -112,8 +112,8 @@
         if etypefilter and etypefilter.propval('visible'):
             etypefilter.dispatch(w=w)
         self.nav_html = UStringIO()
-        self.pagination(self.req, self.rset, self.nav_html.write,
-                        not (view and view.need_navigation))
+        if view and view.need_navigation:
+            view.paginate(w=self.nav_html.write)
         w(_(self.nav_html.getvalue()))
         w(u'<div id="contentmain">\n')
         view.dispatch(w=w)