Changeset 6833 for main/waeup.sirp/trunk
- Timestamp:
- 30 Sep 2011, 08:14:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/utils/batching.py
r6831 r6833 175 175 """Update obj to the values given in row. 176 176 """ 177 # Skip location and catalog fields used to locate the object 177 178 for key, value in row.items(): 178 setattr(obj, key, value) 179 if hasattr(obj, key): 180 setattr(obj, key, value) 179 181 return 180 182 … … 274 276 continue 275 277 obj = self.callFactory() 276 for key, value in row.items(): 277 setattr(obj, key, value) 278 self.updateEntry(obj, row, site) 278 279 try: 279 280 self.addEntry(obj, row, site)
Note: See TracChangeset for help on using the changeset viewer.