Ignore:
Timestamp:
11 Sep 2013, 06:03:04 (11 years ago)
Author:
Henrik Bettermann
Message:

Print cumulative params.

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

    r10615 r10616  
    6464                level_obj.gpa,
    6565                passed_params[4],
     66                level_obj.cumulative_params[3],
     67                level_obj.cumulative_params[4],
     68                level_obj.cumulative_params[0],
    6669                )
    6770        table.append(line)
     
    106109            TTR('Total Credits Passed'),
    107110            TTR('GPA'),
    108             'Courses Failed')
     111            'Courses Failed',
     112            TTR('Cum. Credits Taken'),
     113            TTR('Cum. Credits Passed'),
     114            TTR('CGPA'))
    109115    table = [col_names]
    110116    sn = 1
     
    157163        table_data = tbl_data_to_table(self.data)
    158164        #col_widths = [3.5*cm] * len(self.data[0])
    159         col_widths = [1*cm, 4*cm, 5*cm, 0.8*cm, 0.8*cm, 0.8*cm, 6*cm, ]
     165        col_widths = [1*cm, 4*cm, 5*cm, 0.8*cm, 0.8*cm, 0.8*cm,
     166                      6*cm, 0.8*cm, 0.8*cm, 0.8*cm]
    160167        pdf_data = [Paragraph('<b>%s</b>' % self.creation_dt_string,
    161168                              STYLE["Normal"]),
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_level_report.py

    r10574 r10616  
    2727        result = get_students('fac1', 'dep1', 2010, 100)
    2828        self.assertEqual(result,
    29             [(u'K1000000', u'1234', u'Bob Tester', 30, 30, 5.0, [])])
     29            [(u'1234', u'Bob Tester', 30, 30, 5.0, [], 30, 30, 5.0)])
    3030        return
    3131
Note: See TracChangeset for help on using the changeset viewer.