Changeset 2614 for WAeUP_SRP/base/skins/waeup_student
- Timestamp:
- 9 Nov 2007, 21:30:03 (17 years ago)
- Location:
- WAeUP_SRP/base/skins/waeup_student
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getStudyLevelInfo.py
r2606 r2614 37 37 import logging 38 38 logger = logging.getLogger('Skins.getStudyLevelInfo') 39 40 #def calculateGPA():41 # """calculate the gpa"""42 # sum = 043 # course_count = 044 # for sc in context.objectValues():45 # result = sc.getContent()46 # if not result.grade:47 # continue48 # res = context.portal_catalog({'meta_type': 'Course',49 # 'id': sc.aq_parent.id})50 # if len(res) < 1:51 # continue52 # course = res[0].getObject().getContent()53 # if course_count:54 # return sum/course_count55 # return 0.056 57 #def cmp_semester_id(a,b):58 # s1 = "%(semester)s%(id)s" % a59 # s2 = "%(semester)s%(id)s" % b60 # if s1 == s2:61 # return 062 # if s1 > s2:63 # return 164 # return -165 39 66 40 student_id = context.getStudentId() -
WAeUP_SRP/base/skins/waeup_student/study_level_view.pt
r2606 r2614 77 77 <span tal:repeat="sem python:('1','2')"> 78 78 79 <t h colspan="3" tal:content="python: test(sem == '1','First Semester', 'Second Semester')" />79 <tr><th colspan="3" tal:content="python: test(sem == '1','First Semester', 'Second Semester')" /></tr> 80 80 <tr tal:repeat="row python: test(sem == '1',info['normal1'],info['normal2'])" 81 81 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> … … 103 103 </td> 104 104 </tr> 105 106 107 <th colspan="3" tal:condition="info/normal3"> Combined</th> 105 106 </span> 107 108 <tr><th colspan="3" tal:condition="info/normal3"> Combined</th></tr> 108 109 <tr tal:condition="info/normal3" tal:repeat="row info/normal3" 109 110 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')"> … … 134 135 135 136 136 </span> 137 137 138 138 139 <tr>
Note: See TracChangeset for help on using the changeset viewer.