# HG changeset patch # User Arthur Lutz # Date 1234370598 -3600 # Node ID f8c1f8a407499d683de00ad29ff2c05e19d7d5cc # Parent 5ecf67090c2fe6aafb0560955462290838811a3d use UStringIO diff -r 5ecf67090c2f -r f8c1f8a40749 web/views/basetemplates.py --- a/web/views/basetemplates.py Wed Feb 11 17:00:39 2009 +0100 +++ b/web/views/basetemplates.py Wed Feb 11 17:43:18 2009 +0100 @@ -7,13 +7,13 @@ """ __docformat__ = "restructuredtext en" -from StringIO import StringIO from logilab.mtconverter import html_escape from cubicweb import NoSelectableObject, ObjectNotFound from cubicweb.common.view import Template, MainTemplate, NOINDEX, NOFOLLOW from cubicweb.common.utils import make_uid +from cubicweb.common.utils import UStringIO from cubicweb.web.views.baseviews import vid_from_rset @@ -75,6 +75,7 @@ - guess and call an appropriate view through the view manager """ id = 'main' + nav_html = UStringIO() def _select_view_and_rset(self): req = self.req @@ -116,7 +117,6 @@ def call(self): view, rset = self._select_view_and_rset() req = self.req - self.nav_html = StringIO() # update breadcrumps **before** validating cache, unless the view # specifies explicitly it should not be added to breadcrumb or the # view is a binary view