web/views/basetemplates.py
changeset 16 a70ece4d9d1a
parent 0 b97547f5f1fa
child 29 7d14f1eadded
--- a/web/views/basetemplates.py	Mon Nov 10 18:18:44 2008 +0100
+++ b/web/views/basetemplates.py	Mon Nov 10 19:33:55 2008 +0100
@@ -163,7 +163,7 @@
                                                  self.req, self.rset)
         if etypefilter and etypefilter.propval('visible'):
             etypefilter.dispatch(w=self.w)
-        self.pagination(self.req, self.rset, self.w, not view.need_navigation)
+        self.pagination(self.req, self.rset, self.w, not (view and view.need_navigation))
         self.w(u'<div id="contentmain">\n')
     
     def template_html_header(self, content_type, page_title, additional_headers=()):