Changeset 5456


Ignore:
Timestamp:
19 Aug 2010, 11:52:19 (14 years ago)
Author:
Henrik Bettermann
Message:

enable editing application records by providing jamb_reg_no only (pume2 applicants without registration number sent by JAMB)

  • not yet tested -
File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPImport.py

    r5232 r5456  
    280280        reg_no = mapping.get('reg_no')
    281281        status = mapping.get('status')
    282         msg = ''
    283         while True:
    284             res = self.applicants_catalog(reg_no = reg_no)
     282        jamb_reg_no = mapping.get('jamb_reg_no')
     283        msg = ''
     284        while True:
     285            if jamb_reg_no:
     286                res = self.applicants_catalog(jamb_reg_no = jamb_reg_no.upper())
     287                if not len(res):
     288                    res = self.applicants_catalog(jamb_reg_no = jamb_reg_no.lower())
     289                if not len(res):
     290                    msg =  "applicant record with jamb_reg_no %s does not exist" % jamb_reg_no
     291                    break
     292            else:
     293                res = self.applicants_catalog(reg_no = reg_no)
    285294            if len(res):
    286295                if res[0].status == 'created' and status != 'created':
Note: See TracChangeset for help on using the changeset viewer.