def __init__ (self, typ, jobdata):
    self.jobtype = typ
    self.jobid = generateJobID()
    d = {"__jobtype" : typ, "__data" : jobdata }

    path = "%s/%s.job" % (TASK_QUEUE_DIR, self.jobid)
    f = open(path, "w+")
    json.dump(d, f)
    f.close()
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/task.py/Job.__init__/original