Example #1
0
def current_release(request):
    release = Vault.all().order('-version').get()
    if release:
        return Response(release.version)
    else:
        return Response("0")
Example #2
0
def list_releases(request):
    releases = Vault.all().order('-version').fetch(10)
    return render_to_response('vault/list_releases.html', 
            {'releases': releases})