must not be a class attribute\!
authorsylvain.thenault@logilab.fr
Fri, 13 Feb 2009 09:28:04 +0100
changeset 609 08b82027edf8
parent 608 7433011bb811
child 610 30cb5e29a416
must not be a class attribute\!
web/views/basetemplates.py
--- a/web/views/basetemplates.py	Thu Feb 12 12:59:12 2009 +0100
+++ b/web/views/basetemplates.py	Fri Feb 13 09:28:04 2009 +0100
@@ -75,7 +75,6 @@
     - guess and call an appropriate view through the view manager
     """
     id = 'main'
-    nav_html = UStringIO()
 
     def _select_view_and_rset(self):
         req = self.req
@@ -165,6 +164,7 @@
                                                  self.req, self.rset)
         if etypefilter and etypefilter.propval('visible'):
             etypefilter.dispatch(w=self.w)
+        self.nav_html = UStringIO()
         self.pagination(self.req, self.rset, self.nav_html.write,
                         not (view and view.need_navigation))
         self.w(_(self.nav_html.getvalue()))