def lookup_consumer(self, key): if key == ROOT_CONSUMER.key: return ROOT_CONSUMER return api.oauth_get_consumer(api.ROOT, key)