Changeset 1842
- Timestamp:
- 2 Jun 2007, 05:42:11 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/ti_165_resolve.py
r1664 r1842 45 45 students_cat = context.students_catalog 46 46 pumeresults = context.portal_pumeresults 47 de_students = students_cat(entry_mode = ' DE')47 de_students = students_cat(entry_mode = 'de_ft') 48 48 found = 0 49 49 not_found = 0 … … 81 81 dict['name'] = des.name 82 82 dict['score'] = score 83 dict['result_type'] = ' DE'83 dict['result_type'] = 'de_ft' 84 84 dict['sex'] = 'M' 85 dict['status'] = 'Admitted' 85 86 if des.sex: 86 87 dict['sex'] = 'F' 87 s = '%(jamb_reg_no)s with student_id %(student_id)s not in pumeresults should berecreatet<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'88 s = '%(jamb_reg_no)s with student_id %(student_id)s not in pumeresults and is recreatet<br>\r\n' 89 #s += 'Sex:%(sex)s,Name: %(name)s,Type:%(result_type)s<br>\n\r' 90 #s += 'Studycourse: %(course_code)s,Faculty: %(faculty)s,Department: %(department)s,Score: %(score)s' 90 91 rwrite(s % (dict)) 91 92 pumeresults.addRecord(**dict) 93 92 94 not_found += 1 93 95 continue 94 96 found += 1 95 97 #rwrite('%s with jamb_reg_no %s found in pumeresults' % (des.id,des.jamb_reg_no)) 96 rwrite('%d found in pumeresults <br>%d not found in pumeresults<br>total in portal_pumeresults %d <br>' 98 rwrite('%d found in pumeresults <br>%d not found in pumeresults<br>total in portal_pumeresults %d <br>' 97 99 % (found,not_found,len(pumeresults()))) 98 100
Note: See TracChangeset for help on using the changeset viewer.