Changeset 1475 for WAeUP_SRP/trunk
- Timestamp:
- 23 Feb 2007, 09:58:27 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_utilities/fixEntryModeFromRegno.py
r1464 r1475 44 44 level_cat = sb.level 45 45 new_em = context.getEntryMode(sb.jamb_reg_no) 46 if students.hasObject('application'): 47 app = getattr(getattr(students,sb.id),'application') 48 app.getContent().edit(mapping={'entry_mode': new_em}) 49 cat.modifyRecord(id = sb.id,entry_mode = new_em) 50 else: 46 app_found = False 47 if students.hasObject(sb.id): 48 student_obj = getattr(students,sb.id) 49 if student_obj.hasObject('application'): 50 app = getattr(student_obj,'application') 51 app.getContent().edit(mapping={'entry_mode': new_em}) 52 cat.modifyRecord(id = sb.id,entry_mode = new_em) 53 app_found = True 54 if not app_found: 51 55 cat.modifyRecord(id = sb.id,entry_mode = "") 52 s = '"%s","%s","%s","%s","%s","%s" ' % (sb.id,sb.matric_no,em,56 s = '"%s","%s","%s","%s","%s","%s","%s"' % (app_found,sb.id,sb.matric_no,em, 53 57 sb.jamb_reg_no,new_em,level_cat) 54 58 #lines.append('"%s","%s","%s","%s"' % (sb.id,sb.matric_no,moe,new_em))
Note: See TracChangeset for help on using the changeset viewer.