Ignore:
Timestamp:
19 Apr 2012, 15:40:34 (13 years ago)
Author:
uli
Message:

Keep compatibility with new base importer.

File:
1 edited

Legend:

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

    r8008 r8223  
    112112
    113113    def getLocator(self, row):
    114         #if 'application_number' in row.keys() and row['application_number']:
    115         if row.get('application_number',None):
     114        if row.get('application_number', None):
    116115            return 'application_number'
    117         elif 'reg_number' in row.keys() and row['reg_number']:
     116        elif row.get('reg_number', None):
    118117            return 'reg_number'
    119118        else:
     
    186185        converter = IObjectConverter(iface)
    187186        errs, inv_errs, conv_dict =  converter.fromStringDict(
    188             row, self.factory_name)
     187            row, self.factory_name, mode=mode)
    189188        return errs, inv_errs, conv_dict
Note: See TracChangeset for help on using the changeset viewer.