Exemplo n.º 1
0
def get_user(userName):
    user_api = UserAPI()
    user = user_api.user_by_name(userName)
    if user == None:
        raise ApiDataError(_("Could not find user [ %s ]") % (userName))
    return user
Exemplo n.º 2
0
 def __init__(self):
     super(UserAction, self).__init__()
     self.api = UserAPI()