# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1240412146 -7200 # Node ID 0a440312913b2da6ac96b9dce09bf23ac1284045 # Parent 39320a58faacb9a6146fb8932738b6171f79e2fb set_stream simplification diff -r 39320a58faac -r 0a440312913b 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