Пример #1
0
                      title='Delete done files' 
                      onclick='return confirm("Do you really want to delete all done files for this batch?")'/>
 <input type='submit' 
                      name='delete_action' 
                      value='All'   
                      title='Delete all files for this batch' 
                      onclick='return confirm("Do you really want to delete all files for this batch?")'/>
 </form>
 </div>""" % (my_batch)
 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"