Revision 736072e2

b/docs/developers/clients-api.rst
288 288
    IMAGE_CONTAINER = 'images'
289 289

  
290 290
    astakos = AstakosClient(AUTHENTICATION_URL, TOKEN)
291
    USER_UUID = astakos.user_term('uuid')
291
    USER_UUID = astakos.user_info['uuid']
292 292

  
293 293
    PITHOS_URL = astakos.get_service_endpoints('object-store')['publicURL']
294 294
    pithos = PithosClient(PITHOS_URL, TOKEN, USER_UUID, IMAGE_CONTAINER)
b/kamaki/clients/astakos/__init__.py
56 56
            self.get_endpoints(), ep_type=service_type, ep_version_id=version)
57 57
        return services[0]['endpoints'][0] if services else []
58 58

  
59
    @property
60
    def user_info(self):
61
        return self.authenticate()['access']['user']
62

  
63
    def user_term(self, term):
64
        return self.user_info[term]
65

  
59 66

  
60 67
def _astakos_error(foo):
61 68
    def wrap(self, *args, **kwargs):

Also available in: Unified diff