Ignore:
Timestamp:
18 Apr 2012, 05:12:32 (12 years ago)
Author:
Henrik Bettermann
Message:

Empty If no value is provided in import files, attributes must not be cleared. Clear attribute only if value == DELETIONMARKER.

File:
1 edited

Legend:

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

    r7858 r8202  
    104104
    105105    def updateEntry(self, obj, row, site):
    106         # This is not strictly necessary, as the default
    107         # updateEntry method does exactly the same
    108106        for key, value in row.items():
    109             setattr(obj, key, value)
     107            if value is not None:
     108                setattr(obj, key, value)
    110109
    111110class BatchProcessorTests(FunctionalTestCase):
Note: See TracChangeset for help on using the changeset viewer.