Changeset 9250


Ignore:
Timestamp:
28 Sep 2012, 05:21:03 (12 years ago)
Author:
Henrik Bettermann
Message:

Correct comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/batching.py

    r8987 r9250  
    142142    def getLocator(self, row):
    143143        if row.get('container_code', None) not in (IGNORE_MARKER, None):
    144             # create, update or remove
     144            # create mode
    145145            return 'container_code'
    146146        elif row.get('applicant_id', None) not in (IGNORE_MARKER, None):
    147             # update or remove
     147            # update or remove mode
    148148            return 'applicant_id'
    149149        elif row.get('reg_number', None) not in (IGNORE_MARKER, None):
    150             # update or remove
     150            # update or remove mode
    151151            return 'reg_number'
    152152        else:
     
    269269        parent = self.getParent(row, site)
    270270        if self.getLocator(row) == 'container_code':
    271             # Update mode: the applicant exists and we can get the applicant_id
    272271            parent.__parent__.logger.info(
    273272                'Applicant imported: %s' % items_changed)
    274273        else:
    275             # Create mode: the applicant does not yet exist
    276274            parent.__parent__.logger.info(
    277275                'Applicant updated: %s' % items_changed)
Note: See TracChangeset for help on using the changeset viewer.