def other_users(): users = [] for u in model.get_users(): users.append({'id': u.id, 'name': u.username}) return json.dumps(users)
def list_users(): for user in model.get_users(): print user