Changeset 14601 for main/waeup.kofa/trunk
- Timestamp:
- 6 Mar 2017, 10:09:13 (8 years ago)
- 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
r14574 r14601 41 41 creation_dt_string = Attribute('Human readable report creation datetime') 42 42 43 def 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 43 50 def get_students(faccode, depcode, certcode, session, level): 44 51 """Get students in a certain department, studying a certain programmen … … 64 71 level_obj = stud['studycourse'][str(level)] 65 72 if level_obj.level_session != session: 73 continue 74 if excluded(level_obj): 66 75 continue 67 76 passed_params = level_obj.passed_params -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/raw_score_report.py
r14572 r14601 41 41 certcode = Attribute('Certificate to report') 42 42 creation_dt_string = Attribute('Human readable report creation datetime') 43 44 def excluded(level_obj): 45 """Some universities may add further conditions to exclude 46 students from reports. These conditions can be customized in 47 this function. 48 """ 49 return False 43 50 44 51 def get_courses(faccode, depcode, certcode, session, level): … … 82 89 level_obj = stud['studycourse'][str(level)] 83 90 if level_obj.level_session != session: 91 continue 92 if excluded(level_obj): 84 93 continue 85 94 scores = dict() -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/session_results_presentation.py
r14572 r14601 39 39 """ Same interface as for level session results presentation. 40 40 """ 41 42 def excluded(level_obj): 43 """Some universities may add further conditions to exclude 44 students from reports. These conditions can be customized in 45 this function. 46 """ 47 return False 41 48 42 49 def get_students(faccode, depcode, certcode, session, level=None): … … 72 79 level_obj = stud['studycourse'][str(level)] 73 80 if level_obj.level_session != session: 81 continue 82 if excluded(level_obj): 74 83 continue 75 84 else:
Note: See TracChangeset for help on using the changeset viewer.