<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def route_acl(self, *acl, **options):
 """Decorator to attach an ACL to a route. E.g:: @app.route('/url/to/view') @authz.route_acl(''' ALLOW WHEEL ALL DENY ANY ALL ''') def my_admin_function():
 pass """


        def _route_acl(func):

            func.__acl__ = acl

            @functools.wraps(func)
            def wrapped(*args, **kwargs):
                permission = 'http.' + request.method.lower()
                local_opts = options.copy()
                local_opts.setdefault('default', current_app.config['ACL_ROUTE_DEFAULT_STATE'])
                self.assert_can(permission, func, **local_opts)
                return func(*args, **kwargs)

            return wrapped
        return _route_acl