Example #1
0
def other_users():
    users = []
    for u in model.get_users():
        users.append({'id': u.id, 'name': u.username})

    return json.dumps(users)
Example #2
0
def list_users():
    for user in model.get_users():
        print user