def commit(self, jobNum, jobObj): fp = SafeFile(os.path.join(self._dbPath, 'job_%d.txt' % jobNum), 'w') fp.writelines(self._fmt.format(self._serialize_job_obj(jobObj))) fp.close() self._jobMap[jobNum] = jobObj
def commit(self, jobNum, jobObj): fp = SafeFile(os.path.join(self._dbPath, 'job_%d.txt' % jobNum), 'w') fp.writelines( utils.DictFormat(escapeString=True).format(jobObj.getAll())) fp.close()
def commit(self, jobNum, jobObj): fp = SafeFile(os.path.join(self._dbPath, 'job_%d.txt' % jobNum), 'w') fp.writelines(utils.DictFormat(escapeString = True).format(jobObj.getAll())) fp.close()