Changeset 1468 for WAeUP_SRP/trunk/skins/waeup_student
- Timestamp:
- 22 Feb 2007, 11:08:57 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py
r1466 r1468 61 61 gpa = 0 62 62 course_count = 0 63 verdict = None64 63 session = None 65 verdict_voc = context.portal_vocabularies.verdicts 64 66 65 for r in results: 67 if verdict is None: 68 verdict = verdict_voc.get(student_from_cat.verdict) 66 if session is None: 69 67 session = r.Session 70 68 result = {} … … 99 97 gpa = "%4.2f" % gpa 100 98 99 100 if student_from_cat.verdict: 101 verdict_voc = context.portal_vocabularies.verdicts 102 info['verdict'] = verdict_voc.get(student_from_cat.verdict) 103 else: 104 info['verdict'] = 'N/A' 105 101 106 if student_from_cat.level: 102 107 if student_from_cat.sex: … … 109 114 info['level'] = 'N/A' 110 115 111 info['verdict'] = verdict112 116 info['session'] = session 113 117 info['gpa'] = gpa
Note: See TracChangeset for help on using the changeset viewer.