Ignore:
Timestamp:
11 Jan 2017, 13:08:15 (8 years ago)
Author:
Henrik Bettermann
Message:

Move 'courses w/o results' column.

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  
    7070                level_obj.gpa_params[1],
    7171                passed_params[2],
    72                 passed_params[5],
    7372                '%.2f' % (int(100*level_obj.gpa)/100.0),
    7473                failed_courses,
     74                passed_params[5],
    7575                level_obj.cumulative_params[1],
    7676                level_obj.cumulative_params[4],
     
    118118            TTR(translate(_('Total Credits Taken'))),
    119119            TTR(translate(_('Total Credits Passed'))),
    120             TTR(translate(_('Courses w/o Result'))),
    121120            TTR(translate(_('GPA'))),
    122121            translate(_('Courses Failed')),
     122            TTR(translate(_('Courses w/o Result'))),
    123123            TTR(translate(_('Cum. Credits Taken'))),
    124124            TTR(translate(_('Cum. Credits Passed'))),
     
    130130        # Underline mandatory (core) courses
    131131        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:]
    134134        # Superscript in remarks (needed by AAUE)
    135135        remark = Paragraph(
     
    189189        table_data = tbl_data_to_table(self.data)
    190190        #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]
    193193        pdf_data = [Paragraph('<b>%s - Report %s</b>'
    194194                              % (self.creation_dt_string, job_id),
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_level_report.py

    r14382 r14387  
    4141        result = get_students('fac1', 'dep1', 2010, 100)
    4242        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', '')])
    4545        return
    4646
Note: See TracChangeset for help on using the changeset viewer.