Changeset 3336
- Timestamp:
- 14 Mar 2008, 22:53:14 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPImport.py
r3330 r3336 351 351 student_record = None 352 352 id_count = 0 353 for id_key in (' id','matric_no'):353 for id_key in ('matric_no','id'): 354 354 id_field = mapping.get(id_key,'') 355 355 if id_field: … … 358 358 search_field = id_field 359 359 while True: 360 if id_count > 1:361 msg = "both id and matric_no are provided"362 break363 elif id_count == 0:360 #if id_count > 1: 361 # msg = "both id and matric_no are provided" 362 # break 363 if id_count == 0: 364 364 msg = "neither id nor matric_no provided" 365 365 break … … 441 441 if msg: 442 442 break 443 student_id = student_record.id 443 student_id = student_record.id 444 444 level_id = mapping.get('level_id','') 445 445 code = mapping.get('code','')
Note: See TracChangeset for help on using the changeset viewer.