Ignore:
Timestamp:
16 Aug 2016, 09:01:16 (8 years ago)
Author:
Henrik Bettermann
Message:

Add remark column. So far, only used and filled by AAUE.

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

    r13969 r14079  
    7171                level_obj.cumulative_params[4],
    7272                level_obj.cumulative_params[0],
     73                getattr(level_obj, 'remark', None),
    7374                )
    7475        table.append(line)
     
    115116            TTR('Cum. Credits Taken'),
    116117            TTR('Cum. Credits Passed'),
    117             TTR('CGPA'))
     118            TTR('CGPA'),
     119            TTR('Remark'))
    118120    table = [col_names]
    119121    sn = 1
     
    171173        #col_widths = [3.5*cm] * len(self.data[0])
    172174        col_widths = [1*cm, 4*cm, 5*cm, 0.8*cm, 0.8*cm, 1*cm,
    173                       6*cm, 0.8*cm, 0.8*cm, 1*cm]
     175                      6*cm, 0.8*cm, 0.8*cm, 1*cm, 2*cm]
    174176        pdf_data = [Paragraph('<b>%s</b>' % self.creation_dt_string,
    175177                              STYLE["Normal"]),
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/tests/test_level_report.py

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