def updateTable(request):
    #Use CondorJobPopulat to get updates
    manage = Manager()
    retVal = manage.getStatus()
    changedJobs = CondorJobPopulate.checkUpdate(retVal)
    data = serializers.serialize('json', changedJobs)
    print sys.stderr, data
    return HttpResponse(data, "application/json")
def initTable(request):
    #Populate the database with current jobs
    manage = Manager()
    retVal = manage.getStatus()
    CondorJobPopulate.populateJobs(retVal)
    
    #Get current running experiment & jobs
    retDict = {'jobs' : CondorJob.objects.all()}
    
    #Return
    c = Context(retDict)  
    t = loader.get_template("condorManager/condorjobs.html")
    return HttpResponse(t.render(c))