Ignore:
Timestamp:
22 May 2015, 07:17:29 (10 years ago)
Author:
Henrik Bettermann
Message:

Remove quite old bug in doImport: Replace empty strings *and* lists with
ignore-markers in update *and* create mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py

    r12869 r12981  
    384384                continue
    385385            string_row = self.applyMapping(raw_row, mapping)
    386             if ignore_empty and mode in ('update',):
    387                 # Replace empty strings with ignore-markers
     386            if ignore_empty:
     387                # Replace empty strings and empty lists with ignore-markers
    388388                for key, val in string_row.items():
    389                     if val == '':
     389                    if val == '' or val == '[]':
    390390                        string_row[key] = IGNORE_MARKER
    391391            row = dict(string_row.items()) # create deep copy
Note: See TracChangeset for help on using the changeset viewer.