Changeset 16901 for main/waeup.kofa/trunk
- Timestamp:
- 23 Mar 2022, 07:05:20 (3 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r16831 r16901 4 4 1.7.2.dev0 (unreleased) 5 5 ======================= 6 7 * Consider `course_category` in addStudentStudyLevel` method. 6 8 7 9 * Add `previous` field to `StudentStudyCourseProcessor`, -
main/waeup.kofa/trunk/src/waeup/kofa/students/studycourse.py
r16800 r16901 82 82 return False 83 83 84 def addStudentStudyLevel(self, cert, studylevel ):84 def addStudentStudyLevel(self, cert, studylevel, course_category=None): 85 85 """Add a study level object. 86 86 """ … … 106 106 if val.total_score >= val.passmark: 107 107 continue 108 if course_category and val.course_category != course_category: 109 continue 108 110 if key in self[str(studylevel.level)]: 109 111 # Carry-over ticket exists … … 111 113 co_ticket = createObject(u'waeup.CourseTicket') 112 114 for name in ['code', 'title', 'credits', 'passmark', 113 'semester', 'mandatory', 'fcode', 'dcode']: 115 'semester', 'mandatory', 'fcode', 'dcode', 116 'course_category']: 114 117 setattr(co_ticket, name, getattr(val, name)) 115 118 co_ticket.automatic = True
Note: See TracChangeset for help on using the changeset viewer.