Changeset 6008 for main/waeup.sirp/trunk/src/waeup/sirp/university
- Timestamp:
- 2 May 2011, 09:21:22 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/university
- Files:
-
- 3 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): -
main/waeup.sirp/trunk/src/waeup/sirp/university/course.py
r5953 r6008 24 24 self.semester = semester 25 25 26 def longtitle(self): 27 return "%s (%s)" % (self.title,self.code) 28 26 29 class CourseFactory(grok.GlobalUtility): 27 30 """A factory for courses. -
main/waeup.sirp/trunk/src/waeup/sirp/university/interfaces.py
r5995 r6008 154 154 required = True, 155 155 ) 156 157 def longtitle(): 158 """ 159 Returns the long title of a course. 160 """ 156 161 157 162 class ICourseAdd(ICourse): … … 221 226 ) 222 227 228 def longtitle(): 229 """ 230 Returns the long title of a certificate. 231 """ 232 223 233 class ICertificateAdd(ICertificate): 224 234 """Representation of a certificate. … … 273 283 """ 274 284 285 def longtitle(): 286 """ 287 Returns the long title of a certificatecourse. 288 """ 289 275 290 276 291 class ICertificateCourseAdd(ICertificateCourse):
Note: See TracChangeset for help on using the changeset viewer.