'The actual paste.filter_factory protocol method.'

def __call__(self, global_conf, **local_conf):

    factory = self._import_factory(local_conf)
    def filter(app):
        return factory(app, self.conf, **local_conf)
    return filter
