- Timestamp:
- 2 May 2011, 09:21:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py
r5977 r6008 13 13 from waeup.sirp.university.interfaces import ( 14 14 ICertificate, ICertificateAdd, ICertificateCourse, ICourse) 15 from waeup.sirp.university.vocabularies import course_levels 15 16 16 17 class Certificate(grok.Container): … … 56 57 57 58 #review_state = property(getReviewState, setReviewState) 59 60 def longtitle(self): 61 return "%s (%s)" % (self.title,self.code) 58 62 59 63 def addCourseRef(self, course, level=100, core_or_elective=True): … … 105 109 """ 106 110 return self.course.code 111 112 def longtitle(self): 113 return "%s in level %s" % (self.course.code, 114 course_levels.getTerm(self.level).title) 107 115 108 116 class CertificateCourseFactory(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.