Changeset 9250
- Timestamp:
- 28 Sep 2012, 05:21:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/batching.py
r8987 r9250 142 142 def getLocator(self, row): 143 143 if row.get('container_code', None) not in (IGNORE_MARKER, None): 144 # create , update or remove144 # create mode 145 145 return 'container_code' 146 146 elif row.get('applicant_id', None) not in (IGNORE_MARKER, None): 147 # update or remove 147 # update or remove mode 148 148 return 'applicant_id' 149 149 elif row.get('reg_number', None) not in (IGNORE_MARKER, None): 150 # update or remove 150 # update or remove mode 151 151 return 'reg_number' 152 152 else: … … 269 269 parent = self.getParent(row, site) 270 270 if self.getLocator(row) == 'container_code': 271 # Update mode: the applicant exists and we can get the applicant_id272 271 parent.__parent__.logger.info( 273 272 'Applicant imported: %s' % items_changed) 274 273 else: 275 # Create mode: the applicant does not yet exist276 274 parent.__parent__.logger.info( 277 275 'Applicant updated: %s' % items_changed)
Note: See TracChangeset for help on using the changeset viewer.