| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
list --+
|
object --+ |
| |
node --+
|
elnode --+
|
templessnode
templess element node
has a special method 'convert' that makes it conver itself to a normal elnode by processing all templess directives (returns a new node, doesn't process in-place)
|
|||
| __init__(self, name, attrs, parent, t_prefix, charset='UTF-8') | ||
|
convert(self,
context,
parent=None) process the templess directives |
||
|
_handle_cond(self,
attrs,
context) handle the 't:cond' and 't:not' directives |
||
| _process_attr(self, attrs, context) | ||
| _get_replace(self, attrs) | ||
| _get_content(self, attrs) | ||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
process the templess directives returns a copy of self, or a list of copies of self (in case of t:content), can return unexpected results in case of t:replace, use only on root nodes of documents in production situation (iow: if you want to convert a tree, always make sure there's no t:repeat on the node you call convert() on) context is a context dict (see docs), parent is an internal helper argument |
handle the 't:cond' and 't:not' directives returns False if there's a t:cond or t:not that doesn't allow rendering, True otherwise |
|
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Mon Nov 13 21:49:09 2006 | http://epydoc.sourceforge.net |