Changeset 14387 for main/waeup.kofa/trunk
- Timestamp:
- 11 Jan 2017, 13:08:15 (8 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/reports
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py
r14382 r14387 70 70 level_obj.gpa_params[1], 71 71 passed_params[2], 72 passed_params[5],73 72 '%.2f' % (int(100*level_obj.gpa)/100.0), 74 73 failed_courses, 74 passed_params[5], 75 75 level_obj.cumulative_params[1], 76 76 level_obj.cumulative_params[4], … … 118 118 TTR(translate(_('Total Credits Taken'))), 119 119 TTR(translate(_('Total Credits Passed'))), 120 TTR(translate(_('Courses w/o Result'))),121 120 TTR(translate(_('GPA'))), 122 121 translate(_('Courses Failed')), 122 TTR(translate(_('Courses w/o Result'))), 123 123 TTR(translate(_('Cum. Credits Taken'))), 124 124 TTR(translate(_('Cum. Credits Passed'))), … … 130 130 # Underline mandatory (core) courses 131 131 failed_courses = Paragraph( 132 line[ 6].replace('m_', '<u>').replace('_m', '</u>'), SMALL_PARA_STYLE)133 line = line[: 6] + (failed_courses,) + line[7:]132 line[5].replace('m_', '<u>').replace('_m', '</u>'), SMALL_PARA_STYLE) 133 line = line[:5] + (failed_courses,) + line[6:] 134 134 # Superscript in remarks (needed by AAUE) 135 135 remark = Paragraph( … … 189 189 table_data = tbl_data_to_table(self.data) 190 190 #col_widths = [3.5*cm] * len(self.data[0]) 191 col_widths = [1*cm, 4*cm, 5*cm, 0.8*cm, 0.8*cm, 0.8*cm,1*cm,192 6*cm, 0.8*cm, 0.8*cm, 1*cm, 2*cm]191 col_widths = [1*cm, 4*cm, 5*cm, 0.8*cm, 0.8*cm, 1*cm, 192 6*cm, 0.8*cm, 0.8*cm, 0.8*cm, 1*cm, 2*cm] 193 193 pdf_data = [Paragraph('<b>%s - Report %s</b>' 194 194 % (self.creation_dt_string, job_id), -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_level_report.py
r14382 r14387 41 41 result = get_students('fac1', 'dep1', 2010, 100) 42 42 self.assertEqual(result, 43 [(u'1234', u'Bob Tester', 90, 30, 0,'1.66',44 'm_Course2_m Course3', 90, 30, '1.666', '')])43 [(u'1234', u'Bob Tester', 90, 30, '1.66', 44 'm_Course2_m Course3', 0, 90, 30, '1.666', '')]) 45 45 return 46 46
Note: See TracChangeset for help on using the changeset viewer.