Exemple #1
0
def setup_download(request):
    print('SD-1: ',CIV_template.BasicMode,CIV_template.TempData[:128])
    context = {}
    context['filename'] = CIV_template.DefaultFileName
    if CIV_template.BasicMode:
        CIV_template.save_to_TempData(request)
        context['download_action'] = 'download_basicmode'
    else:
        CIV_template.save_case(request, ActiveCollection)
        context['download_action'] = 'download_data'
    print(context)
    return render(request,'djciv_data/setup_download.html',context)
Exemple #2
0
def get_new_case(request):
    CIV_template.save_to_TempData(request)
    return render(request,'djciv_data/file_select.html')
Exemple #3
0
def save_basic(request):
    """ save data then return to template-based form """
    global ActiveTemplate
    CIV_template.save_to_TempData(request)
    return render(request,'djciv_data/basic_form.html', {'form_content' : ActiveTemplate})