'Add a filter. The provided function is called with the configuration
string as parameter and must return a (regexp, to_python, to_url) tuple.
The first element is a string, the last two are callables or None.'

def add_filter(self, name, func):

    self.filters[name] = func
