예제 #1
0
파일: app.py 프로젝트: InPermutation/droste
def view(id):
    return render_template('image.html', bucket=bucket(), id=id, user=cheezapi.user())
예제 #2
0
파일: app.py 프로젝트: InPermutation/droste
def submit(id):
    if cheezapi.user():
        asset = cheezapi.submit('http://' + bucket()+ '/' + id + '.gif')
        return redirect(asset['items'][0]['share_url'])
    return redirect(cheezapi.auth_uri(id))
예제 #3
0
파일: app.py 프로젝트: InPermutation/droste
def hello():
    return render_template('index.html', user=cheezapi.user())