コード例 #1
0
def plist(request):

    # get list of processed studies
    processedlist = getProcessedStudyList()

    # return http response back to user
    t = loader.get_template('studies/plist.html')
    c = RequestContext(request, {'processedlist':processedlist,})
    return HttpResponse(t.render(c))
コード例 #2
0
def list(request):

    # get list of not queued not processed studies
    waitlist = getWaitingStudyList()
    # get list of queued studies
    queuedlist = getQueuedStudyList()
    # get list of processed studies
    processedlist = getProcessedStudyList()

    #send http response back to user
    t = loader.get_template('studies/list.html')
    c = RequestContext(request, {'queuedlist':queuedlist,'processedlist':processedlist,'waitlist':waitlist,})
    return HttpResponse(t.render(c))