Changeset 8581 for main/waeup.kofa


Ignore:
Timestamp:
31 May 2012, 20:19:58 (12 years ago)
Author:
Henrik Bettermann
Message:

We have to customize also those interfaces which are used for string conversion only. Prepare ApplicantProcessor? and StudentProcessor? for customization.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

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

    r8348 r8581  
    9494    name = u'Applicant Processor'
    9595    iface = IApplicant
     96    iface_byregnumber = IApplicantUpdateByRegNo
    9697    location_fields = ['']
    9798    factory_name = 'waeup.Applicant'
     
    296297        iface = self.iface
    297298        if self.getLocator(row) == 'reg_number' or mode == 'remove':
    298             iface = IApplicantUpdateByRegNo
     299            iface = self.iface_byregnumber
    299300        converter = IObjectConverter(iface)
    300301        errs, inv_errs, conv_dict =  converter.fromStringDict(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py

    r8498 r8581  
    5656    name = u'Student Processor'
    5757    iface = IStudent
     58    iface_byregnumber = IStudentUpdateByRegNo
     59    iface_bymatricnumber = IStudentUpdateByMatricNo
    5860
    5961    location_fields = []
     
    251253        if mode in ['update', 'remove']:
    252254            if self.getLocator(row) == 'reg_number':
    253                 iface = IStudentUpdateByRegNo
     255                iface = self.iface_byregnumber
    254256            elif self.getLocator(row) == 'matric_number':
    255                 iface = IStudentUpdateByMatricNo
     257                iface = self.iface_bymatricnumber
    256258        converter = IObjectConverter(iface)
    257259        errs, inv_errs, conv_dict =  converter.fromStringDict(
Note: See TracChangeset for help on using the changeset viewer.