Пример #1
0
def delete_release(request, id):
    release = Vault.get(id)
    release.delete()
    return redirect(url_for('vault/list_releases'))
Пример #2
0
def current_release(request):
    release = Vault.all().order('-version').get()
    if release:
        return Response(release.version)
    else:
        return Response("0")
Пример #3
0
def list_releases(request):
    releases = Vault.all().order('-version').fetch(10)
    return render_to_response('vault/list_releases.html', 
            {'releases': releases})