Пример #1
0
def edit_user(user_id):
    if request.method == 'GET' or request.method == 'POST':
        manage_user = ManageUser()
        selected_user = manage_user.get_user(user_id)
        user_roles = manage_user.get_roles()
        return render_template('admin/user/edit_user.html',
                               roles=user_roles,
                               user=selected_user)
Пример #2
0
def get_selected_user_info(user_id):
    manage_user = ManageUser()
    selected_user = manage_user.get_user(user_id)

    json_data = json.dumps(selected_user.__dict__, sort_keys=True)
    return json_data