print "</div></th>" print "</tr></thead>" print "<tbody>" for run in my_batch["runs"]: x = my_batch.copy() x.update(run) x["text_file"] = RunBatch.RunTextFile(run) x["text_path"] = RunBatch.RunTextFilePath(my_batch, run) x["done_file"] = RunBatch.RunDoneFile(run) x["done_path"] = RunBatch.RunDoneFilePath(my_batch, run) x["out_file"] = RunBatch.RunOutFile(run) x["out_path"] = RunBatch.RunOutFilePath(my_batch, run) print "<tr>" print "<td>%(start)d</td><td>%(end)d</td><td>%(job_id)s</td>" % (x) if run["status"] == "Complete": cpu = RunBatch.GetCPUTime(my_batch, run) print "<td style='color:green'>" if cpu: print "Complete (%.2f sec)" % (cpu) else: print "Complete" stat = "Complete" print "</td>" else: print """ <td style='color:red'>%s<br/> <form action='ViewBatch.py' method='POST' target='ResubmitWindow'> <input type='hidden' name='batch_id' value='%d' /> <input type='hidden' name='submit_run' value='%d' /> <input type='submit' value='Resubmit' /> </form>