- Timestamp:
- 20 Sep 2012, 08:49:37 (12 years ago)
- Location:
- main/waeup.kofa/branches/uli-zc-async
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-zc-async
- Property svn:mergeinfo changed
-
main/waeup.kofa/branches/uli-zc-async/src/waeup/kofa/university/certificate.py
r8738 r9209 36 36 grok.implements(ICertificate, ICertificateAdd) 37 37 38 @property # Make this method read_only and looking like an attr. 39 def local_roles(self): 40 return ['waeup.local.CourseAdviser100', 41 'waeup.local.CourseAdviser200', 42 'waeup.local.CourseAdviser300', 43 'waeup.local.CourseAdviser400', 44 'waeup.local.CourseAdviser500', 45 'waeup.local.CourseAdviser600', 46 ] 38 local_roles = [ 39 'waeup.local.CourseAdviser100', 40 'waeup.local.CourseAdviser200', 41 'waeup.local.CourseAdviser300', 42 'waeup.local.CourseAdviser400', 43 'waeup.local.CourseAdviser500', 44 'waeup.local.CourseAdviser600', 45 ] 47 46 48 47 def __init__(self, code=u'NA', title=u'Unnamed Certificate', 49 48 study_mode=None, start_level=None, 50 49 end_level=None, application_category=None, 51 school_fee_1=None, school_fee_2=None): 50 school_fee_1=None, school_fee_2=None, 51 school_fee_3=None, school_fee_4=None): 52 52 super(Certificate, self).__init__() 53 53 self.code = code … … 59 59 self.school_fee_1 = school_fee_1 60 60 self.school_fee_2 = school_fee_2 61 self.school_fee_3 = school_fee_3 62 self.school_fee_4 = school_fee_4 61 63 62 64 def longtitle(self): 63 65 return "%s (%s)" % (self.title,self.code) 64 66 65 def addC ourseRef(self, course, level=100, mandatory=True):66 """Add a c ourse referrer.67 def addCertCourse(self, course, level=100, mandatory=True): 68 """Add a certificate course. 67 69 """ 68 70 code = "%s_%s" % (course.code, level) … … 72 74 self._p_changed = True 73 75 74 def delC ourseRef(self, code, level=None):75 """Delete a c ourse referrerdenoted by its code.76 def delCertCourse(self, code, level=None): 77 """Delete a certificate course denoted by its code. 76 78 """ 77 79 keys = list(self.keys()) # create list copy
Note: See TracChangeset for help on using the changeset viewer.