Changeset 8222 for main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py
- Timestamp:
- 19 Apr 2012, 15:39:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py
r8220 r8222 212 212 continue 213 213 setattr(obj, key, value) 214 changed.append('%s=%s' % (key, value)) 214 log_value = getattr(value, 'code', value) 215 changed.append('%s=%s' % (key, log_value)) 215 216 return ', '.join(changed) 216 217 … … 293 294 num += 1 294 295 string_row = self.applyMapping(raw_row, mapping) 296 if ignore_empty and mode in ('update',): 297 # replace empty strings with ignore-markers 298 for key, val in string_row.items(): 299 if val == '': 300 string_row[key] = IGNORE_MARKER 295 301 row = dict(string_row.items()) # create deep copy 296 if ignore_empty and mode in ('update'):297 # replace empty strings with ignore-markers298 for key, val in row.items():299 if val == '':300 row.update(key=IGNORE_MARKER)301 302 errs, inv_errs, conv_dict = self.checkConversion(string_row, mode) 302 303 if errs or inv_errs:
Note: See TracChangeset for help on using the changeset viewer.