Esempio n. 1
0
def reload(request):
    c = {}
    c.update(csrf(request))

    progress = licensesIO.getProgress()
    if progress == 100:
        licensesIO.LoadData()
    elif progress == 0:
        licensesIO.LoadData()
    return HttpResponseRedirect("/load/")
Esempio n. 2
0
def load(request):
    c = {}
    c.update(csrf(request))
    progress = licensesIO.getProgress()
    c['progress_level'] = progress
    c['current_file'] = licensesIO.getCurrent()
    c['last_sw'] = licensesIO.getlastSoftware()

    if progress == 100:
        return render_to_response('index.html',c)
    else:
        return render_to_response('load.html',c)