def view_backups(request): backups = backup.list_backups() item_list = [(i,i) for i in sorted(backups)] item_type='backup' title = "Viewing All Backups" item_manip = "restore from that backup" links = [('/upload_backup/', "Upload Backup", False)] return render_to_response('list_data.html', locals(), context_instance=RequestContext(request))
def view_backups(request): backups = backup.list_backups() item_list = [(i,i,0,"") for i in sorted(backups)] item_type='backup' title = "Viewing All Backups" item_manip = "restore from that backup" links = [('/upload_backup/', "Upload Backup")] return render(request, 'common/list_data.html', locals())
def view_backups(request): backups = backup.list_backups() item_list = [(i, i, 0, "") for i in sorted(backups)] item_type = "backup" title = "Viewing All Backups" item_manip = "restore from that backup" links = [("/upload_backup/", "Upload Backup")] return render(request, "common/list_data.html", locals())
def view_backups(request): backups = backup.list_backups() item_list = [(i, i, 0, "") for i in sorted(backups)] item_type = 'backup' title = "Viewing All Backups" item_manip = "restore from that backup" links = [('/upload_backup/', "Upload Backup", False)] return render(request, 'list_data.html', locals())
def view_backup(request, filename): backups = backup.list_backups() item_list = [] item_type='backup' title = "Viewing Backup: {}".format(filename) item_manip = "restore from that backup" links = [('/backup/download/{}/'.format(filename), "Download Backup", False), ('/backup/restore/{}/'.format(filename), "Restore From Backup", True)] return render_to_response('list_data.html', locals(), context_instance=RequestContext(request))
def view_backup(request, filename): backups = backup.list_backups() item_list = [] item_type='backup' title = "Viewing Backup: {}".format(filename) item_manip = "restore from that backup" links = [('/backup/download/{}/'.format(filename), "Download Backup"), ('/backup/restore/{}/'.format(filename), "Restore From Backup")] return render(request, 'common/list_data.html', locals())
def view_backup(request, filename): backups = backup.list_backups() item_list = [] item_type = "backup" title = "Viewing Backup: {}".format(filename) item_manip = "restore from that backup" links = [("/backup/download/{}/".format(filename), "Download Backup"), ("/backup/restore/{}/".format(filename), "Restore From Backup")] return render(request, "common/list_data.html", locals())