Changeset 8202 for main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py
- Timestamp:
- 18 Apr 2012, 05:12:32 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py
r7950 r8202 32 32 from waeup.kofa.interfaces import ( 33 33 IBatchProcessor, FatalCSVError, IObjectConverter, 34 ICSVExporter )34 ICSVExporter, DELETIONMARKER) 35 35 36 36 class BatchProcessor(grok.GlobalUtility): … … 204 204 # Skip fields not declared in interface. 205 205 if hasattr(obj, key): 206 setattr(obj, key, value) 206 # Set attribute to None if value is marked for deletion 207 if value == DELETIONMARKER: 208 setattr(obj, key, None) 209 elif value is not None: 210 setattr(obj, key, value) 207 211 return 208 212
Note: See TracChangeset for help on using the changeset viewer.