Exemple #1
0
def my_album(album_id):
    album = photo_db.get_album(album_id)
    albums = photo_db.get_albums(user.get_id())

    return render_template('myalbum.html',
                           album=album,
                           photos=photo_db.get_album_files(album_id),
                           albums=albums)
Exemple #2
0
def myhomepage():
    albums = photo_db.get_albums(user.get_id())
    user_msg = photo_db.get_user(user.get_id())

    return render_template('myhomepage.html',
                           albums=albums,
                           user_name=user.get_id(),
                           user_msg=user_msg)
Exemple #3
0
def upload():
    return render_template('upload_form.html',
                           albums=photo_db.get_albums(user.get_id()))