Exemple #1
0
def index_blueprint():
    bio_heading = get_option('bio_heading')
    bio = get_option('bio')

    flickr = get_flickr()
    flickr.get_galleries(get_option('flickr_user').value, 1, 100)
    photos = flickr.get_photos(get_option('flickr_user').value, 1, 28)

    return render_template('index.html', bio=bio, bio_heading=bio_heading, photos=photos)
Exemple #2
0
def admin_flickr_favourites_blueprint(page=1):
    if only_admin() != None:
        return only_admin()

    flickr = get_flickr()
    
    print(flickr.get_nsid(get_option('flickr_user').value))

    photos = flickr.get_favourites(flickr.get_nsid(get_option('flickr_user').value), page, 128)

    return render_template('admin_flickr_favourites.html',photos=photos, page=page, base_url='/admin/flickr-favourites/')
Exemple #3
0
def gallery_blueprint(page=1):
    flickr = get_flickr()

    photos = flickr.get_photos(get_option("flickr_user").value, page, 128)
    return render_template("flickr_gallery.html", photos=photos, page=page, base_url="/gallery/")