Ignore:
Timestamp:
10 Jan 2017, 18:41:09 (8 years ago)
Author:
Henrik Bettermann
Message:

Exchange level and session on report slips.

Use string formatting for displaying GPA values.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students/reports
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/raw_score_report.py

    r14381 r14384  
    230230        pdf_data += [Paragraph(
    231231                    translate(
    232                         '${a}<br />${b}<br />Level: ${c}<br />Session: ${d}',
     232                        '${a}<br />${b}<br />Session: ${c}<br />Level: ${d}',
    233233                        mapping = {'a':self.factitle,
    234234                                   'b':self.deptitle,
    235                                    'c':self.level,
    236                                    'd':self.session, }),
     235                                   'c':self.session,
     236                                   'd':self.level,
     237                                   }),
    237238                    STYLE["Normal"]),
    238239                    Spacer(1, 12),]
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_level_report.py

    r14374 r14384  
    3030        result = get_students('fac1', 'dep1', 2010, 100)
    3131        self.assertEqual(result,
    32             [(u'1234', u'TESTER, Bob', 30, 30, 0, 5.0, '', 30, 30, 5.0, 'Proceed')])
     32            [(u'1234', u'TESTER, Bob', 30, 30, 0, '5.00', '', 30, 30, '5.000', 'Proceed')])
    3333        return
    3434
Note: See TracChangeset for help on using the changeset viewer.