Ignore:
Timestamp:
22 Feb 2017, 11:20:40 (8 years ago)
Author:
Henrik Bettermann
Message:

Exclude graduated students from LevelReport, SessionResultsPresentation
and RawScoreReport.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students/reports
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py

    r14554 r14572  
    2323from zope.interface import implementer, Interface, Attribute
    2424from waeup.kofa.interfaces import (
    25     IKofaUtils,
     25    IKofaUtils, GRADUATED,
    2626    academic_sessions_vocab, registration_states_vocab)
    2727from waeup.kofa.interfaces import MessageFactory as _
     
    5959    for stud in result:
    6060        if not stud['studycourse'].has_key(str(level)):
     61            continue
     62        if stud.state == GRADUATED:
    6163            continue
    6264        level_obj = stud['studycourse'][str(level)]
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/raw_score_report.py

    r14514 r14572  
    2323from zope.interface import implementer, Interface, Attribute
    2424from waeup.kofa.interfaces import (
    25     IKofaUtils,
     25    IKofaUtils, GRADUATED,
    2626    academic_sessions_vocab, registration_states_vocab)
    2727from waeup.kofa.interfaces import MessageFactory as _
     
    7777    for stud in result:
    7878        if not stud['studycourse'].has_key(str(level)):
     79            continue
     80        if stud.state == GRADUATED:
    7981            continue
    8082        level_obj = stud['studycourse'][str(level)]
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/session_results_presentation.py

    r14514 r14572  
    2222from zope.interface import implementer, Interface, Attribute
    2323from waeup.kofa.interfaces import (
    24     IKofaUtils,
     24    IKofaUtils, GRADUATED,
    2525    academic_sessions_vocab, registration_states_vocab)
    2626from waeup.kofa.students.vocabularies import StudyLevelSource
     
    6161        table.append([])
    6262    for stud in result:
     63        if stud.state == GRADUATED:
     64            continue
    6365        line = (stud.student_id,
    6466                stud.matric_number,
Note: See TracChangeset for help on using the changeset viewer.