Changeset 2485
- Timestamp:
- 30 Oct 2007, 23:56:17 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/cps_custom/logged_in.py
r2483 r2485 212 212 ######################################################### 213 213 214 has_results = context.results_import(matric_no = matric_no) 214 if matric_no: 215 has_results = context.results_import(matric_no = matric_no) 216 else: 217 has_results = '' 215 218 216 219 ######################################################### -
WAeUP_SRP/base/skins/waeup_student/getSessionResults.py
r2466 r2485 68 68 session = None 69 69 level = None 70 verdict = None 70 71 71 72 for r in results: … … 73 74 session = r.Session 74 75 if level is None: 75 level = r.Level 76 level = r.Level 77 if verdict is None: 78 verdict = r.Verdict 76 79 result = {} 77 80 for field in fields: … … 106 109 107 110 #set_trace() 108 verdict_voc = context.portal_vocabularies.verdicts109 verdict_code = student_from_cat.verdict110 if verdict_code:111 info['verdict'] = verdict = verdict_voc.get(verdict_code,'N/A').upper()112 else:113 info['verdict'] = verdict = 'N/A'111 #verdict_voc = context.portal_vocabularies.verdicts 112 #verdict_code = student_from_cat.verdict 113 #if verdict_code: 114 # info['verdict'] = verdict = verdict_voc.get(verdict_code,'N/A').upper() 115 #else: 116 # info['verdict'] = verdict = 'N/A' 114 117 118 if verdict: 119 info['verdict'] = verdict 115 120 if session: 116 121 info['session'] = session -
WAeUP_SRP/base/skins/waeup_utilities/fix06Verdict.py
r2478 r2485 47 47 try: 48 48 study_course_doc = getattr(getattr(students,brain.id),'study_course').getContent() 49 verdict = study_course_doc.current_verdict 49 50 # final fix 51 if brain.matric_no: 52 verdict = study_course_doc.current_verdict 53 else: 54 verdict = '' 50 55 study_course_doc.edit(mapping = { "current_verdict": '', 51 56 "previous_verdict": verdict}) 52 #rwrite('found %s , %s ,%s, %s' % (brain.id, 53 # study_course_doc.current_session, 54 # brain.matric_no, 55 # brain.name)) 57 58 # Info: The logging message is wrong if not matric_no 56 59 logger.info("Current verdict of %s (%s, %s, %s, %s) moved to previous verdict" % (brain.id, 57 60 brain.matric_no, -
WAeUP_SRP/fceokene/profiles/default/vocabularies/aos.xml
r2446 r2485 81 81 <item key="as72" msgid="">MARKETING</item> 82 82 <item key="as73" msgid="">EDUCATION ECONOMICS/SOCIAL STUDIES</item> 83 <item key="as74" msgid="">PHYSIOLOGY</item> 84 <item key="as75" msgid="">AGRICULTURE</item> 83 85 84 86
Note: See TracChangeset for help on using the changeset viewer.