def authorize(self, client):
    client.auth_token = self
    request_orig = client.http_client.request

    def new_request(http_request):
      response = request_orig(http_request)
      if response.status == 401:
        refresh_response = self._refresh(request_orig)
        if self._invalid:
          return refresh_response
        else:
          self.modify_request(http_request)
          return request_orig(http_request)
      else:
        return response

    client.http_client.request = new_request
    return client
Returns a current status of application cache.
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py/OAuth2Token.authorize--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/selenium/webdriver/common/html5/application_cache.py/ApplicationCache.status