| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
dict --+
|
utils.Storage --+
|
UserDict.DictMixin --+
|
TemplateResult
Dictionary like object for storing template output.
A template can specify key-value pairs in the output using `var` statements. Each `var` statement adds a new key to the template output and the main output is stored with key __body__.
>>> d = TemplateResult(__body__='hello, world', x='foo') >>> d <TemplateResult: {'__body__': 'hello, world', 'x': 'foo'}> >>> print d hello, world >>> d = TemplateResult() >>> d.extend([u'hello', u'world']) >>> d <TemplateResult: {'__body__': u'helloworld'}>
|
|||
new empty dictionary |
|
||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
x[y]
|
str(x)
|
repr(x)
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Aug 4 09:57:30 2010 | http://epydoc.sourceforge.net |