- Timestamp:
- 14 Sep 2011, 21:14:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/studycourse.py
r6642 r6774 22 22 from zope.component.interfaces import IFactory 23 23 from waeup.sirp.students.interfaces import ( 24 IStudentStudyCourse, IStudentNavigation )24 IStudentStudyCourse, IStudentNavigation, IStudentStudyLevel) 25 25 from waeup.sirp.utils.helpers import attrs_to_fields 26 26 … … 38 38 return self.__parent__ 39 39 40 def addStudentStudyLevel(self, studylevel): 41 """Add a study level object. 42 """ 43 if not IStudentStudyLevel.providedBy(studylevel): 44 raise TypeError( 45 'StudentStudyCourses contain only IStudentStudyLevel instances') 46 self[studylevel.level] = studylevel 47 return 48 40 49 StudentStudyCourse = attrs_to_fields(StudentStudyCourse)
Note: See TracChangeset for help on using the changeset viewer.