branch | stable |
changeset 3094 | 978ed8c2c0e4 |
parent 3091 | c3d73cecb29e |
child 3101 | e75ab3635f07 |
--- a/utils.py Wed Sep 02 09:31:22 2009 +0200 +++ b/utils.py Wed Sep 02 10:59:48 2009 +0200 @@ -308,7 +308,8 @@ self.htmltag = u'<html xmlns="http://www.w3.org/1999/xhtml" ' \ 'xmlns:cubicweb="http://www.logilab.org/2008/cubicweb" ' \ 'xml:lang="%s" lang="%s">' % (req.lang, req.lang) - + # keep main_stream's reference on req for easier text/html demoting + req.main_stream = self def write(self, data): """StringIO interface: this method will be assigned to self.w