set_stream simplification tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 22 Apr 2009 16:55:46 +0200
branchtls-sprint
changeset 1424 0a440312913b
parent 1423 39320a58faac
child 1425 3ad7cfca481e
set_stream simplification
view.py
--- a/view.py	Wed Apr 22 16:55:09 2009 +0200
+++ b/view.py	Wed Apr 22 16:55:46 2009 +0200
@@ -426,17 +426,12 @@
             return STRICT_DOCTYPE
         return STRICT_DOCTYPE_NOEXT
 
-    def set_stream(self, w=None, templatable=True):
-        if templatable and self.w is not None:
+    def set_stream(self, w=None):
+        if self.w is not None:
             return
-
         if w is None:
             if self.binary:
                 self._stream = stream = StringIO()
-            elif not templatable:
-                # not templatable means we're using a non-html view, we don't
-                # want the HTMLStream stuff to interfere during data generation
-                self._stream = stream = UStringIO()
             else:
                 self._stream = stream = HTMLStream(self.req)
             w = stream.write