@@ -0,0 +1,1033 @@
+%22%22%22%0AProvides filters used to inject code into methods.%0A%22%22%22%0A%0A%0Adef action_filter(function):%0A    %22%22%22%0A    Filter used to inject code before and after the execution of the action.%0A    :param function: The function to be injected.%0A    %22%22%22%0A    def wrapper(*args, **kwargs):%0A        def execute(f):%0A            order = kwargs.pop('order', -1)%0A            next = function(*args, **kwargs)%0A%0A            f.filters = getattr(f, 'filters', %5B%5D)%0A            f.filters.append((action_filter, next, order))%0A            return f%0A        return execute%0A    return wrapper%0A%0A%0Adef exception_filter(function):%0A    %22%22%22%0A    Filter used to inject code when an exception is raised.%0A    :param function: The function to be injected.%0A    %22%22%22%0A    def wrapper(*args, **kwargs):%0A        def execute(f):%0A            order = kwargs.pop('order', -1)%0A            next = function(*args, **kwargs)%0A%0A            f.filters = getattr(f, 'filters', %5B%5D)%0A            f.filters.append((action_filter, next, order))%0A            return f%0A        return execute%0A    return wrapper%0A

Add base function to create filters