[basetemplate nav] no need for an attribute here
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Sat, 17 Jul 2010 10:00:05 +0200
changeset 5988 d8ac8acd27f9
parent 5987 a9d508973433
child 5989 099d46422f5a
[basetemplate nav] no need for an attribute here
web/views/basetemplates.py
--- a/web/views/basetemplates.py	Sat Jul 17 09:59:44 2010 +0200
+++ b/web/views/basetemplates.py	Sat Jul 17 10:00:05 2010 +0200
@@ -132,14 +132,14 @@
             'etypenavigation', self._cw, rset=self.cw_rset)
         if etypefilter and etypefilter.cw_propval('visible'):
             etypefilter.render(w=w)
-        self.nav_html = UStringIO()
+        nav_html = UStringIO()
         if view:
-            view.paginate(w=self.nav_html.write)
-        w(_(self.nav_html.getvalue()))
+            view.paginate(w=nav_html.write)
+        w(_(nav_html.getvalue()))
         w(u'<div id="contentmain">\n')
         view.render(w=w)
         w(u'</div>\n') # close id=contentmain
-        w(_(self.nav_html.getvalue()))
+        w(_(nav_html.getvalue()))
         w(u'</div>\n') # closes id=pageContent
         self.template_footer(view)