Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
Return the user name of a uuid (see get_usernames)

src/s/y/synnefo-HEAD/snf-pithos-app/pithos/api/util.py   synnefo(Download)
                            logger=logger)
    try:
        displayname = astakos.get_username(uuid)
    except NoUserName:
        if not fail_silently:

src/s/y/synnefo-HEAD/snf-cyclades-app/synnefo/helpdesk/views.py   synnefo(Download)
        account = search_query
        try:
            account_name = astakos_client.get_username(account)
        except:
            logger.info("Failed to resolve '%s' into account" % account)
 
        try:
            ip.account = astakos_client.get_username(userid)
        except:
            ip.account = userid

src/s/y/synnefo-HEAD/astakosclient/astakosclient/tests.py   synnefo(Download)
            client = AstakosClient(token['id'], auth_url,
                                   use_pool=False, retry=2)
            info = client.get_username(user['id'])
        except Exception, e:
            self.fail("Shouldn't raise an Exception: %s" % e)
    def test_no_username(self):
        global token, auth_url
        try:
            client = AstakosClient(token['id'], auth_url)
            client.get_username("1234")

src/a/s/astakosclient-0.15/astakosclient/tests.py   astakosclient(Download)
            client = AstakosClient(token['id'], auth_url,
                                   use_pool=False, retry=2)
            info = client.get_username(user['id'])
        except Exception, e:
            self.fail("Shouldn't raise an Exception: %s" % e)
    def test_no_username(self):
        global token, auth_url
        try:
            client = AstakosClient(token['id'], auth_url)
            client.get_username("1234")