Changeset 1664 for WAeUP_SRP/trunk
- Timestamp:
- 30 Mar 2007, 17:27:18 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/ti_165_resolve.py
r1660 r1664 53 53 pres = pumeresults(jamb_reg_no = des.jamb_reg_no) 54 54 if not pres: 55 rwrite('>>>>>>>> %s with jamb_reg_no %s not found in pumeresults' % (des.id,des.jamb_reg_no)) 55 student_obj = getObject(students,des.id) 56 if student_obj is None: 57 rwrite('%s with jamb_reg_no %s %s/%s/%s student object not found' % (des.id, 58 des.jamb_reg_no, 59 des.faculty, 60 des.department, 61 des.course, 62 )) 63 continue 64 pume_obj = getObject(student_obj,'pume') 65 if pume_obj is None: 66 rwrite('%s with jamb_reg_no %s %s/%s/%s pume object not found' % (des.id, 67 des.jamb_reg_no, 68 des.faculty, 69 des.department, 70 des.course, 71 )) 72 continue 73 pume_doc = pume_obj.getContent() 74 score = pume_doc.pume_tot_score 75 dict = {} 76 dict['student_id'] = des.id 77 dict['jamb_reg_no'] = des.jamb_reg_no 78 dict['course_code'] = des.course 79 dict['department'] = des.department 80 dict['faculty'] = des.faculty 81 dict['name'] = des.name 82 dict['score'] = score 83 dict['result_type'] = 'DE' 84 dict['sex'] = 'M' 85 if des.sex: 86 dict['sex'] = 'F' 87 s = '%(jamb_reg_no)s with student_id %(student_id)s not in pumeresults should be recreatet<br>\r\n' 88 s += 'Sex:%(sex)s,Name: %(name)s,Type:%(result_type)s<br>\n\r' 89 s += 'Studycourse: %(course_code)s,Faculty: %(faculty)s,Department: %(department)s,Score: %(score)s' 90 rwrite(s % (dict)) 91 56 92 not_found += 1 57 93 continue 58 94 found += 1 59 rwrite('%s with jamb_reg_no %s found in pumeresults' % (des.id,des.jamb_reg_no))95 #rwrite('%s with jamb_reg_no %s found in pumeresults' % (des.id,des.jamb_reg_no)) 60 96 rwrite('%d found in pumeresults <br>%d not found in pumeresults<br>total in portal_pumeresults %d <br>' 61 97 % (found,not_found,len(pumeresults())))
Note: See TracChangeset for help on using the changeset viewer.