| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
InjectorTransformation
Abstract base class for transformations that inject content into a stream.
>>> class Top(InjectorTransformation): ... def __call__(self, stream): ... for event in self._inject(): ... yield event ... for event in stream: ... yield event >>> html = HTML('<body>Some <em>test</em> text</body>') >>> print html | Transformer('.//em').apply(Top('Prefix ')) Prefix <body>Some <em>test</em> text</body>
| Instance Methods | |||
|
|||
|
Inherited from |
|||
| Properties | |
|
Inherited from |
| Method Details |
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Jun 9 12:25:07 2008 | http://epydoc.sourceforge.net |