Changeset 1816
- Timestamp:
- 24 May 2007, 05:49:27 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r1809 r1816 394 394 dsc = {} 395 395 catalog_entry['level'] = dsc['current_level'] = entry_levels.get(da['entry_mode'],'100') 396 #catalog_entry['level'] = dsc['current_level'] = '100' # Attention: not for DE students 396 #catalog_entry['level'] = dsc['current_level'] = '100' # Attention: not for DE students 397 397 catalog_entry['session'] = dsc['current_session'] = da['entry_session'] 398 398 catalog_entry['mode'] = dsc['current_mode'] = da['entry_mode'] … … 769 769 #result['Error'] = "No Course" 770 770 #logger.info(format_error % result) 771 772 result['key'] = key 773 try: 774 table.addRecord(**result) 775 except ValueError: 776 #import pdb;pdb.set_trace() 777 result['Error'] = "Duplicate" 778 no_import.append( format_error % result) 779 continue 780 771 781 regs.append(key) 772 782 imported.append(format % result) -
WAeUP_SRP/trunk/WAeUPTool.py
r1813 r1816 291 291 student = res[0] 292 292 else: 293 logger.info(' %s Idnot found in returning_import' % student_id)293 logger.info('Id %s not found in returning_import' % student_id) 294 294 return 295 295 logger.info('%s creates data structure' % student_id) 296 296 s_results = self.results_import(matric_no = student.matric_no) 297 lnr = self.getLevelFromResultsCosCode(s_results) 298 level = "%d00" % lnr 299 verdict,eligible = self.getVerdict(s_results[0].Verdict) 300 if eligible: 301 level = "%d00" % (lnr + 1) 302 ## level = s_results[0].Level 303 ## for result in s_results: 304 ## if level != result.Level: 305 ## logger.info('"%s", "Levels differ","%s != %s"' % (student_id,level,result.Level)) 297 if s_results: 298 lnr = self.getLevelFromResultsCosCode(s_results) 299 level = "%d00" % lnr 300 verdict,eligible = self.getVerdict(s_results[0].Verdict) 301 if eligible: 302 level = "%d00" % (lnr + 1) 303 else: 304 logger.info('matric_no %s not found in results_import' % student.matric_no) 305 level = 0 306 verdict = 'N/A' 306 307 #student should not be allowed to perform this transition 307 308 #wftool = self.portal_workflow -
WAeUP_SRP/trunk/skins/waeup_student/getStudyCourseInfo.py
r1783 r1816 52 52 info['course_doc'] = ci 53 53 else: 54 info['course'] = None 54 info['cert_id'] = 'N/A' 55 ci['study_course'] = 'N/A' 56 ci['title'] = 'N/A' 57 ci['faculty'] = 'N/A' 58 ci['department'] = 'N/A' 59 info['course_doc'] = ci 60 55 61 items = [] 56 62 current_level = sbrain.level
Note: See TracChangeset for help on using the changeset viewer.