Changeset 4894
- Timestamp:
- 27 Jan 2010, 11:29:30 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/trunk/src/waeup/utils/batching.py
r4891 r4894 235 235 236 236 (base, ext) = os.path.splitext(path) 237 failed_path = "%s. %s.pending%s" % (base, mode, ext)237 failed_path = "%s.pending%s" % (base, ext) 238 238 failed_headers = [x for x in mapping.values()] 239 239 failed_headers.append('--ERRORS--') … … 242 242 failed_writer.writerow(dict([(x,x) for x in failed_headers])) 243 243 244 finished_path = "%s. %s.finished%s" % (base, mode, ext)244 finished_path = "%s.finished%s" % (base, ext) 245 245 finished_headers = [x for x in mapping.values()] 246 246 finished_writer = csv.DictWriter(open(finished_path, 'wb'), … … 306 306 self.createLogfile(path, failed_path, num, num_warns, mode, user, 307 307 timedelta, logger=logger) 308 failed_path = os.path.abspath(failed_path) 308 309 if num_warns == 0: 309 310 del failed_writer 310 311 os.unlink(failed_path) 311 return (num, num_warns) 312 failed_path = None 313 return (num, num_warns, 314 os.path.abspath(finished_path), failed_path) 312 315 313 316 class FacultyProcessor(BatchProcessor):
Note: See TracChangeset for help on using the changeset viewer.