Changeset 14382 for main/waeup.kofa/trunk/src/waeup/kofa/students/reports
- Timestamp:
- 10 Jan 2017, 18:33:30 (8 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/reports
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py
r14373 r14382 71 71 passed_params[2], 72 72 passed_params[5], 73 level_obj.gpa,73 '%.2f' % (int(100*level_obj.gpa)/100.0), 74 74 failed_courses, 75 75 level_obj.cumulative_params[1], 76 76 level_obj.cumulative_params[4], 77 level_obj.cumulative_params[0],77 '%.3f' % (int(1000*level_obj.cumulative_params[0])/1000.0), 78 78 remark, 79 79 ) … … 115 115 'S/N', 116 116 'Matric No.', 117 'Name',117 translate(_('Student Name')), 118 118 TTR(translate(_('Total Credits Taken'))), 119 119 TTR(translate(_('Total Credits Passed'))), … … 197 197 pdf_data += [Paragraph( 198 198 translate( 199 '${a}<br />${b}<br /> Level: ${c}<br />Session: ${d}',199 '${a}<br />${b}<br />Session: ${c}<br />Level: ${d}', 200 200 mapping = {'a':self.factitle, 201 201 'b':self.deptitle, 202 'c':self.level, 203 'd':self.session, }), 202 'c':self.session, 203 'd':self.level, 204 }), 204 205 STYLE["Normal"]), 205 206 Spacer(1, 12),] -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/session_results_presentation.py
r14373 r14382 150 150 STYLE["Normal"]), 151 151 Spacer(1, 12),] 152 pdf_data += [Paragraph('%s<br />%s<br /> Level: %s<br />Session: %s' % (153 self.factitle, self.deptitle, self. level, self.session),152 pdf_data += [Paragraph('%s<br />%s<br />Session: %s<br />Level: %s' % ( 153 self.factitle, self.deptitle, self.session, self.level), 154 154 STYLE["Normal"]), 155 155 Spacer(1, 12),] … … 175 175 pdf_data += [Paragraph('<strong>Summary</strong>', STYLE["Normal"])] 176 176 pdf_data.append(Spacer(1, 10)) 177 total_count = 0 177 178 for gpa_class in range(len(students_utils.gpa_boundaries)-1,-1,-1): 178 179 gpa_class_name = students_utils.gpa_boundaries[gpa_class][1] 179 180 gpa_count = len(self.data[gpa_class]) 181 total_count += gpa_count 180 182 pdf_data += [Paragraph('%s: %s' 181 183 % (gpa_class_name, gpa_count), STYLE["Normal"])] 182 184 pass 185 pdf_data += [Paragraph('Total: %s' % (total_count), STYLE["Normal"])] 183 186 184 187 doc_title = translate(_('Presentation of Session Results')) -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_level_report.py
r14373 r14382 41 41 result = get_students('fac1', 'dep1', 2010, 100) 42 42 self.assertEqual(result, 43 [(u'1234', u'Bob Tester', 90, 30, 0, 1.667, 'm_Course2_m Course3',44 90, 30, 1.667, '')])43 [(u'1234', u'Bob Tester', 90, 30, 0, '1.66', 44 'm_Course2_m Course3', 90, 30, '1.666', '')]) 45 45 return 46 46
Note: See TracChangeset for help on using the changeset viewer.