Changeset 5947 for main/waeup.sirp/trunk/src/waeup/sirp/university
- Timestamp:
- 14 Apr 2011, 21:23:48 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/university
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.py
r5052 r5947 21 21 def __init__(self, code=u'NA', title=u'Unnamed Certificate', 22 22 study_mode=None, start_level=None, 23 end_level=None, application_category=None , max_pass = u''):23 end_level=None, application_category=None): 24 24 super(Certificate, self).__init__() 25 25 self.code = code … … 29 29 self.end_level = end_level 30 30 self.application_category = application_category 31 self.max_pass = max_pass32 31 # Initialize workflow state... 33 32 self.setReviewState('unchecked') … … 68 67 69 68 def delCourseRef(self, code, level=None): 70 """Delete a course denoted by its code.69 """Delete a course reference denoted by its code. 71 70 """ 72 71 for key in self.keys(): … … 79 78 self._p_changed = True 80 79 return 81 82 83 84 80 85 81 class CertificateFactory(grok.GlobalUtility): -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.txt
r5140 r5947 17 17 -------------------- 18 18 19 .. class:: Certificate([code=u'NA',[ title=u'Unnamed Certificate',[ study_mode=None,[ start_level=None,[ end_level=None,[ application_category=None,[ m_prefix=u'' ,[ max_pass = u'']]]]]]]])19 .. class:: Certificate([code=u'NA',[ title=u'Unnamed Certificate',[ study_mode=None,[ start_level=None,[ end_level=None,[ application_category=None,[ m_prefix=u'']]]]]]]) 20 20 21 21 Create a certificate object with the given parameters. … … 110 110 111 111 112 .. attribute:: max_pass113 114 Each :class:`Certificate` instance has a maximum number of passes:115 116 >>> mycertificate.max_pass117 u''118 119 .. XXX: This is not a proper description120 121 122 112 .. method:: check() 123 113
Note: See TracChangeset for help on using the changeset viewer.