class documentation

class FilterExpression:

View In Hierarchy

Parse 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: 'variable'>
Static Method args​_check Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method resolve Undocumented
Instance Variable filters Undocumented
Instance Variable token Undocumented
Instance Variable var Undocumented
def args_check(name, func, provided):

Undocumented

def __init__(self, token, parser):

Undocumented

def __repr__(self):

Undocumented

def __str__(self):

Undocumented

def resolve(self, context, ignore_failures=False):

Undocumented

filters =

Undocumented

token =

Undocumented

var =

Undocumented