Ignore:
Timestamp:
6 Mar 2017, 10:09:13 (8 years ago)
Author:
Henrik Bettermann
Message:

Some universities may add further conditions to exclude
students from reports. These conditions can be customized in
excluded function.

File:
1 edited

Legend:

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

    r14574 r14601  
    4141    creation_dt_string = Attribute('Human readable report creation datetime')
    4242
     43def excluded(level_obj):
     44    """Some universities may add further conditions to exclude
     45    students from reports. These conditions can be customized in
     46    this function.
     47    """
     48    return False
     49
    4350def get_students(faccode, depcode, certcode, session, level):
    4451    """Get students in a certain department, studying a certain programmen
     
    6471        level_obj = stud['studycourse'][str(level)]
    6572        if level_obj.level_session != session:
     73            continue
     74        if excluded(level_obj):
    6675            continue
    6776        passed_params = level_obj.passed_params
Note: See TracChangeset for help on using the changeset viewer.