| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
FilterExpression
Parses a variable token and its optional filters (all as a single string), and return a list of tuples of the filter name and arguments. Sample:
>>> token = 'variable|default:"Default value"|date:"Y-m-d"' >>> p = Parser('') >>> fe = FilterExpression(token, p) >>> len(fe.filters) 2 >>> fe.var 'variable'
This class should never be instantiated outside of the get_filters_from_token helper function.
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
str(x)
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Apr 17 18:52:20 2008 | http://epydoc.sourceforge.net |