Exemple #1
0
def dashboard():
    if 'uuid' not in session:
        return redirect('/')
    context = {
        'logged_in_user': User.get_one(session['uuid'])
    }
    return render_template('wall.html', messages = Message.get_all(),users = User.get_all(), **context, name = Message.join())
Exemple #2
0
def show_user(id):
    user = User.get_one(id)
    print(user)
    return render_template("show_user_curd.html", user=user)
Exemple #3
0
def edit_user_form(user_id):
    return render_template("usersedit.html", user = User.get_one({"id": user_id}))
Exemple #4
0
def display_user(user_id):
    return render_template("usersread.html", user = User.get_one({"id": user_id}))
Exemple #5
0
def edit_user(id):
    data = {"id": id}
    user = User.get_one(data)
    return render_template('edit.html', user=user)
Exemple #6
0
def show_user(id):
    data = {"id": id}
    user = User.get_one(data)
    return render_template('show.html', user=user)