Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/c/e/CellProfiler-HEAD/BatchProfiler/DeleteFile.py   CellProfiler(Download)
if form.has_key("run_id"):
    run_id = int(form["run_id"].value)
    my_batch,my_run = RunBatch.LoadRun(run_id)
    if ((delete_action.upper() == "ALL") or (delete_action.upper() == "TEXT")):
        remove_if_exists(RunBatch.RunTextFilePath(my_batch, my_run))

src/c/e/CellProfiler-HEAD/BatchProfiler/ViewTextFile.py   CellProfiler(Download)
if cgi.FieldStorage().has_key("run_id"):
    run_id = int(cgi.FieldStorage()["run_id"].value)
    my_batch,my_run = RunBatch.LoadRun(run_id)
    text_file_path = RunBatch.RunTextFilePath(my_batch,my_run);
else: