Changeset 7349 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 15 Dec 2011, 11:18:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py
r7334 r7349 26 26 from waeup.sirp.university.interfaces import ( 27 27 ICertificate, ICertificateAdd, ICertificateCourse) 28 from waeup.sirp.university.vocabularies import course_levels 28 from waeup.sirp.university.vocabularies import course_levels 29 29 30 30 class Certificate(grok.Container): … … 55 55 56 56 def longtitle(self): 57 return "%s (%s)" % (self.title,self.code) 58 57 return "%s (%s)" % (self.title,self.code) 58 59 59 def addCourseRef(self, course, level=100, core_or_elective=True): 60 60 """Add a course referrer. … … 106 106 """ 107 107 return self.course.code 108 108 109 109 def longtitle(self): 110 110 return "%s in level %s" % (self.course.code, 111 course_levels.getTerm(self.level).title) 112 111 course_levels.getTerm(self.level).title) 112 113 113 class CertificateCourseFactory(grok.GlobalUtility): 114 114 """A factory for certificate courses. … … 145 145 studycourse.certificate = None 146 146 notify(grok.ObjectModifiedEvent(student)) 147 #event_name = event.__implemented__.__name__.replace(148 # 'zope.lifecycleevent.','')149 147 student.loggerInfo('ObjectRemovedEvent', 'removed: certificate') 150 148 return
Note: See TracChangeset for help on using the changeset viewer.