Changeset 16901 for main/waeup.kofa/trunk/src
- Timestamp:
- 23 Mar 2022, 07:05:20 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.