Changeset 9706 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 21 Nov 2012, 22:37:03 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/batching.py
r9701 r9706 221 221 pass 222 222 223 def updateEntry(self, obj, row, site ):223 def updateEntry(self, obj, row, site, filename): 224 224 """Update obj to the values given in row. 225 225 """ … … 264 264 # apply other values... 265 265 items_changed += super(ApplicantProcessor, self).updateEntry( 266 obj, row, site )266 obj, row, site, filename) 267 267 268 268 # Log actions... … … 270 270 if self.getLocator(row) == 'container_code': 271 271 parent.__parent__.logger.info( 272 ' Applicant imported: %s' % items_changed)272 '%s - %s - imported: %s' % (self.name, filename, items_changed)) 273 273 else: 274 274 parent.__parent__.logger.info( 275 ' Applicant updated: %s' % items_changed)275 '%s - %s - updated: %s' % (self.name, filename, items_changed)) 276 276 return items_changed 277 277 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py
r9293 r9706 304 304 # create applicant with given application_number 305 305 self.assertTrue( 306 'Applicant imported: applicant_id=dp2011_1234, password=mypwd1, ' 306 'Applicant Processor - sample_applicant_data - imported: ' 307 'applicant_id=dp2011_1234, password=mypwd1, ' 307 308 'reg_number=1001, firstname=Aaren, middlename=Peter, lastname=Pieri, ' 308 309 'sex=m, course1=CERT1, date_of_birth=1990-01-02, email=xx@yy.zz' in … … 311 312 # not shown in the log file 312 313 self.assertTrue( 313 'Applicant imported: reg_number=1003, firstname=Aaren, ' 314 'Applicant Processor - sample_applicant_data - imported: ' 315 'reg_number=1003, firstname=Aaren, ' 314 316 'middlename=Alfons, lastname=Berson, sex=m, course1=CERT1, ' 315 317 'date_of_birth=1990-01-04, email=xx@yy.zz' in … … 369 371 # reg_number is locator 370 372 self.assertTrue( 371 'Applicant updated: reg_number=1001, firstname=Aaren' in 373 'Applicant Processor - sample_applicant_data_update - updated: ' 374 'reg_number=1001, firstname=Aaren' in 372 375 logcontent) 373 376 # applicant_id is locator 374 377 self.assertTrue( 375 'Applicant updated: state=admitted, reg_number=6666, ' 378 'Applicant Processor - sample_applicant_data_update - updated: ' 379 'state=admitted, reg_number=6666, ' 376 380 'firstname=Alfons, applicant_id=dp2011_2345' in 377 381 logcontent)
Note: See TracChangeset for help on using the changeset viewer.