Changeset 7937 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 21 Mar 2012, 16:50:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py
r7933 r7937 187 187 """ 188 188 raise NotImplementedError('method not implemented') 189 190 def checkConstraints(self, obj, row, site): 191 """Checks constraints the object must fulfill 192 before being updated. 193 """ 194 return False 189 195 190 196 def updateEntry(self, obj, row, site): … … 327 333 "Cannot update: no such entry.") 328 334 continue 335 update_errors = self.checkConstraints(obj, row, site) 336 if update_errors is not False: 337 num_warns += 1 338 self.writeFailedRow( 339 failed_writer, string_row, update_errors) 340 continue 329 341 self.updateEntry(obj, row, site) 330 342 finished_writer.writerow(string_row)
Note: See TracChangeset for help on using the changeset viewer.