Changeset 8236 for main/waeup.kofa


Ignore:
Timestamp:
20 Apr 2012, 22:07:46 (13 years ago)
Author:
uli
Message:

Support IGNORE_MARKER.

File:
1 edited

Legend:

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

    r8223 r8236  
    2525from zope.catalog.interfaces import ICatalog
    2626from waeup.kofa.interfaces import (
    27     IBatchProcessor, IObjectConverter, FatalCSVError)
     27    IBatchProcessor, IObjectConverter, FatalCSVError, IGNORE_MARKER)
    2828from waeup.kofa.utils.batching import BatchProcessor
    2929from waeup.kofa.applicants.interfaces import (
     
    112112
    113113    def getLocator(self, row):
    114         if row.get('application_number', None):
     114        if row.get('application_number', None) not in (IGNORE_MARKER, None):
    115115            return 'application_number'
    116         elif row.get('reg_number', None):
     116        elif row.get('reg_number', None) not in (IGNORE_MARKER, None):
    117117            return 'reg_number'
    118118        else:
Note: See TracChangeset for help on using the changeset viewer.