Ignore:
Timestamp:
15 Mar 2017, 12:07:24 (8 years ago)
Author:
Henrik Bettermann
Message:

Use final level for detecting graduating students.

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/level_report.py

    r14626 r14629  
    7777        """
    7878        """
    79         if level_obj.remark not in (
     79        final_level = max(level_obj.student['studycourse'].keys())
     80        final_level_obj = level_obj.student['studycourse'][final_level]
     81        if final_level_obj.remark not in (
    8082            'Pass', '3s_rd_s', '2s_2_s', '2s_1_s', '1s_st_s'):
    8183            return True
     
    8486class GradLevelReportGenerator(LevelReportGenerator):
    8587
    86     title = 'Graduating Students Summary of Results'
     88    title = 'Summary of Graduating Students Results'
    8789    grok.name('grad_level_report')
    8890
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_level_report.py

    r14623 r14629  
    1010
    1111from waeup.aaue.students.reports.level_report import (
    12     CustomLevelReport, GradLevelReport)
     12    CustomLevelReport, GradLevelReport, IGradLevelReport)
    1313
    1414from waeup.aaue.testing import FunctionalLayer
     
    5353    def test_iface(self):
    5454        # ensure we fullfill interface contracts
    55         obj = CustomLevelReport('fac1', 'dep1', 'CERT1', 2010, 100)
    56         verifyClass(ILevelReport, GradLevelReport)
    57         verifyObject(ILevelReport, obj)
     55        obj = GradLevelReport('fac1', 'dep1', 'CERT1', 2010, 100)
     56        verifyClass(IGradLevelReport, GradLevelReport)
     57        verifyObject(IGradLevelReport, obj)
    5858        return
    5959
Note: See TracChangeset for help on using the changeset viewer.