Python class method decorator w/ self arguments?
<p>How do I pass a class field to a decorator on a class method as an argument?  What I want to do is something like:</p>

<pre><code>class Client(object):
    def __init__(self, url):
        self.url = url

    @check_authorization("some_attr", self.url)
    def get(self):
        do_work()
</code></pre>

<p>It complains that self doesn't exist for passing self.url to the decorator.  Is there a way around this?</p>
