Example #1
0
def restore_backup(request, filename):
    print "Trying to restore %s" % filename
    backup.restore_from_backup(filename)
    return render_to_response('thanks.html',
                             {'data_type': "Restored from backup",
                              'data_name': "{}".format(filename)},
                               context_instance=RequestContext(request))
Example #2
0
def restore_backup(request, filename):
    backup.restore_from_backup(filename)
    logout(request)
    return redirect_and_flash_success(
        request,
        "Restored from backup. You have been logged out as a result.",
        path="/")
Example #3
0
def restore_backup(request, filename):
    print "Trying to restore %s" % filename
    backup.restore_from_backup(filename)
    return render_to_response('thanks.html',
                             {'data_type': "Restored from backup",
                              'data_name': "{}".format(filename)},
                               context_instance=RequestContext(request))
Example #4
0
def restore_backup(request, filename):
    print("Trying to restore %s" % filename)
    backup.restore_from_backup(filename)
    return render(request, 'thanks.html', {
        'data_type': "Restored from backup",
        'data_name': "{}".format(filename)
    })
Example #5
0
def restore_backup(request, filename):
    backup.restore_from_backup(filename)
    logout(request)
    return redirect_and_flash_success(request,
            "Restored from backup. You have been logged out as a result.",
            path="/")