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