Changeset 3902 for WAeUP_SRP/trunk/skins/waeup_ois
- Timestamp:
- 3 Feb 2009, 08:12:10 (16 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_ois
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_ois/academic_report_slip.pt
r3841 r3902 12 12 term_complete info/complete1; 13 13 term options/term; 14 sem_series python:(('Term One','normal1','complete1' ),('Term Two','normal2','complete2'),('Term Three','normal3','complete3'));14 sem_series python:(('Term One','normal1','complete1','score_calc_average_1'),('Term Two','normal2','complete2','score_calc_average_2'),('Term Three','normal3','complete3','score_calc_average_3')); 15 15 sem python:sem_series[int(term)-1]; 16 16 "> … … 21 21 layout_mode='view_info', 22 22 layout_id='student_application')" /> 23 <br /> 23 <table> 24 <tr> 25 <td width="180px">Passmark:</td><td>55</td> 26 </tr> 27 <tr> 28 <td>Student's Average:</td><td tal:content="python:info[sem[3]]"></td> 29 </tr> 30 </table> 31 <br /> 32 24 33 <span tal:condition="python:info[sem[2]]" tal:omit-tag=""> 25 34 <table class="contentListing" id="folder_content" width="100%"> -
WAeUP_SRP/trunk/skins/waeup_ois/academic_report_view.pt
r3841 r3902 66 66 <td><span tal:content="info/verdict" /></td> 67 67 </tr> 68 <tr> 69 <th>Passmark:</th> 70 <td>55</td> 71 </tr> 68 72 </table> 69 73 -
WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py
r3820 r3902 97 97 98 98 complete1 = 0 99 score_calc_average_1 = 0 99 100 for r in normal1: 100 if r['grade'] and r['atl']: 101 complete1 += 1 101 if r['grade'] and r['atl']: 102 complete1 += 1 103 score_calc_average_1 += r['score_calc'] 102 104 if len(normal1) == complete1: 103 105 complete1 = True 104 106 else: 105 107 complete1 = False 108 if len(normal1): 109 score_calc_average_1 /= len(normal1) 106 110 info['complete1'] = complete1 111 info['score_calc_average_1'] = score_calc_average_1 107 112 108 113 complete2 = 0 114 score_calc_average_2 = 0 109 115 for r in normal1: 110 if r['grade'] and r['atl']: 111 complete2 += 1 116 if r['grade'] and r['atl']: 117 score_calc_average_2 += r['score_calc'] 118 complete2 += 1 112 119 if len(normal2) == complete2: 113 120 complete2 = True 114 121 else: 115 122 complete2 = False 123 if len(normal2): 124 score_calc_average_2 /= len(normal2) 116 125 info['complete2'] = complete2 126 info['score_calc_average_2'] = score_calc_average_2 117 127 118 128 complete3 = 0 129 score_calc_average_3 = 0 119 130 for r in normal1: 120 if r['grade'] and r['atl']: 121 complete3 += 1 131 if r['grade'] and r['atl']: 132 complete3 += 1 133 score_calc_average_3 += r['score_calc'] 122 134 if len(normal3) == complete3: 123 135 complete3 = True 124 136 else: 125 137 complete3 = False 138 if len(normal3): 139 score_calc_average_3 /= len(normal3) 126 140 info['complete3'] = complete3 141 info['score_calc_average_3'] = score_calc_average_3 127 142 128 143
Note: See TracChangeset for help on using the changeset viewer.