Changeset 8332
- Timestamp:
- 3 May 2012, 11:41:27 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py
r8331 r8332 331 331 self.assertEqual(container['2345'].reg_number, '6666') 332 332 shutil.rmtree(os.path.dirname(fin_file)) 333 # We have to inform the catalog that the reg_number has changed 334 notify(grok.ObjectModifiedEvent(container['2345'])) 333 335 334 # Now we import another file which clears all middlename attributes 336 # and uses the new reg_number as locator 335 # and uses the new reg_number as locator. This test also checks 336 # if the catalog has been informed about the reg_no change. 337 337 num, num_warns, fin_file, fail_file = self.processor.doImport( 338 338 self.csv_file_update2, APPLICANT_HEADER_FIELDS_UPDATE2, 'update') -
main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py
r8330 r8332 30 30 from zope.interface import Interface 31 31 from zope.schema import getFields 32 from zope.event import notify 32 33 from waeup.kofa.interfaces import ( 33 34 IBatchProcessor, FatalCSVError, IObjectConverter, … … 216 217 log_value = getattr(value, 'code', value) 217 218 changed.append('%s=%s' % (key, log_value)) 219 220 # If any catalog is involved it must be updated 221 notify(grok.ObjectModifiedEvent(obj)) 222 218 223 return ', '.join(changed) 219 224
Note: See TracChangeset for help on using the changeset viewer.