Changeset 6831 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 29 Sep 2011, 07:54:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/utils/batching.py
r6828 r6831 230 230 (base, ext) = os.path.splitext(base) 231 231 failed_path = os.path.join(temp_dir, "%s.pending%s" % (base, ext)) 232 failed_headers = mapping. keys()232 failed_headers = mapping.values() 233 233 failed_headers.append('--ERRORS--') 234 234 failed_writer = csv.DictWriter(open(failed_path, 'wb'), 235 235 failed_headers) 236 first_row = mapping.items() 237 first_row.append(("--ERRORS--", "--ERRORS--"),) 238 failed_writer.writerow(dict(first_row)) 236 failed_writer.writerow(dict([(x,x) for x in failed_headers])) 239 237 240 238 finished_path = os.path.join(temp_dir, "%s.finished%s" % (base, ext)) 241 finished_headers = [x for x in mapping.values()]239 finished_headers = mapping.values() 242 240 finished_writer = csv.DictWriter(open(finished_path, 'wb'), 243 241 finished_headers)
Note: See TracChangeset for help on using the changeset viewer.