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))
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))