- Timestamp:
- 17 Feb 2012, 12:06:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py
r7349 r7665 57 57 return "%s (%s)" % (self.title,self.code) 58 58 59 def addCourseRef(self, course, level=100, core_or_elective=True):59 def addCourseRef(self, course, level=100, mandatory=True): 60 60 """Add a course referrer. 61 61 """ 62 62 code = "%s_%s" % (course.code, level) 63 self[code] = CertificateCourse(course, level, core_or_elective)63 self[code] = CertificateCourse(course, level, mandatory) 64 64 self[code].__parent__ = self 65 65 self[code].__name__ = code … … 97 97 grok.implements(ICertificateCourse) 98 98 99 def __init__(self, course=None, level=100, core_or_elective=True):99 def __init__(self, course=None, level=100, mandatory=True): 100 100 self.course = course 101 101 self.level = level 102 self. core_or_elective = core_or_elective102 self.mandatory = mandatory 103 103 104 104 def getCourseCode(self):
Note: See TracChangeset for help on using the changeset viewer.