'Given a token returned from login, return the username
that logged in with it.'

def get_user_from_token(self, token):

    if (token not in self.token_cache):
        raise CX(('invalid    token:    %s' % token))
    else:
        return self.token_cache[token][1]
