Changeset 1794
- Timestamp:
- 17 May 2007, 16:40:34 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1786 r1794 283 283 logger = logging.getLogger('WAeUPTool.makeStudentData') 284 284 students_folder = self.portal_url.getPortalObject().campus.students 285 res = self.students_catalog(id=student_id) 286 if res: 287 st = res[0] 288 res = self.returning_import(matric_no = st.matric_no) 285 #res = self.students_catalog(id=student_id) 286 #if res: 287 # st = res[0] 288 #res = self.returning_import(matric_no = st.matric_no) 289 res = self.returning_import(id = student_id) 289 290 if res: 290 291 student = res[0] 292 else: 293 logger.info('%s Id not found in returning_import' % student_id) 294 return 291 295 logger.info('%s creates data structure' % student_id) 292 s_results = self.results_import(matric_no = st .matric_no)296 s_results = self.results_import(matric_no = student.matric_no) 293 297 lnr = self.getLevelFromResultsCosCode(s_results) 294 298 level = "%d00" % lnr -
WAeUP_SRP/trunk/skins/waeup_student/display_session_results.py
r1448 r1794 78 78 student['session'] = session 79 79 registered = None 80 res = context. students_catalog(matric_no = student_rec.matric_no)80 res = context.returning_import(matric_no = student_rec.matric_no) 81 81 if res: 82 82 student_id = res[0].id -
WAeUP_SRP/trunk/skins/waeup_student/set_access_data.py
r1582 r1794 21 21 sid = st_res[0].id 22 22 else: 23 logger.info('Student object with matric_no does not exist' % matric_no) 23 st_res = context.returning_import(matric_no = matric_no) 24 if st_res: 25 sid = st_res[0].id 26 logger.info('Student object with matric_no %s does not exist in students_catalog. Id taken from returning_import.' % matric_no) 27 else: 28 logger.info('Student object with matric_no %s neither exists in students_catalog nor in returning_import.' % matric_no) 29 return 24 30 res,psm,ds = lt.renderLayout(layout_id= 'student_session_results_search', 25 31 schema_id= 'student_returning',
Note: See TracChangeset for help on using the changeset viewer.