Mercurial > genshi > genshi-test
comparison genshi/filters/transform.py @ 605:bc5faca93699
Text templates now default to rendering as plain text; it is no longer necessary to explicitly specify the "text" method to the `render()` or `serialize()` method of the generated markup stream. See tickets #62 and #118.
author | cmlenz |
---|---|
date | Mon, 27 Aug 2007 19:04:20 +0000 |
parents | ba660d6032d7 |
children | ee48a06a16d6 |
comparison
equal
deleted
inserted
replaced
604:6d1fa718794f | 605:bc5faca93699 |
---|---|
158 :rtype: `Stream` | 158 :rtype: `Stream` |
159 """ | 159 """ |
160 transforms = self._mark(stream) | 160 transforms = self._mark(stream) |
161 for link in self.transforms: | 161 for link in self.transforms: |
162 transforms = link(transforms) | 162 transforms = link(transforms) |
163 return Stream(self._unmark(transforms)) | 163 return Stream(self._unmark(transforms), |
164 serializer=getattr(stream, 'serializer', None)) | |
164 | 165 |
165 def apply(self, function): | 166 def apply(self, function): |
166 """Apply a transformation to the stream. | 167 """Apply a transformation to the stream. |
167 | 168 |
168 Transformations can be chained, similar to stream filters. Any callable | 169 Transformations can be chained, similar to stream filters. Any callable |