- Timestamp:
- 5 Jul 2012, 14:48:51 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.txt
r7819 r8920 96 96 .. XXX: This is not a proper description 97 97 98 .. method:: addC ourseRef(course[, level=100,[ mandatory=True]])99 100 Add a referrer of acourse. A course is an object implementing98 .. method:: addCertCourse(course[, level=100,[ mandatory=True]]) 99 100 Add a certificate course. A course is an object implementing 101 101 :class:`waeup.kofa.interfaces.ICourse`. 102 102 103 Please don't be confused by the term ' referrer'. As course objects104 will normaly be stored105 in a department, the c ourse referrer refers to103 Please don't be confused by the term 'certificate course'. 104 As course objects will normaly be stored 105 in a department, the certificate course refers to 106 106 the 'real' course in the department container. 107 107 108 .. method:: delC ourseRef(code)109 110 Remove a c ourse referrerfrom a certificate.111 112 The referrermust be given by its code number.108 .. method:: delCertCourse(code) 109 110 Remove a certificate course from a certificate. 111 112 The certificate course must be given by its code number. 113 113 114 114 :class:`CertificateCourse` … … 117 117 .. class:: CertificateCourse(course[, level=100[, mandatory=True]]) 118 118 119 Create a c ourse referrer.120 121 A certificate course (old term) or course referrerare held in119 Create a certificate course. 120 121 A certificate course are held in 122 122 certificates and refer to an existing :class:`Course` instance held 123 123 elsewhere. 124 124 125 A certificate can require several c ourse referrers and one126 c ourse referrercan be required by several certificates.125 A certificate can require several certificate courses and one 126 certificate course can be required by several certificates. 127 127 128 128 .. attribute:: course … … 225 225 226 226 To accomplish that, the parents of the removed course are looked up 227 for a certifcate container which contains a c ourse referrerthat227 for a certifcate container which contains a certificate course that 228 228 refers to the deleted course. 229 229 … … 341 341 >>> mycert.code = 'MYCERT' 342 342 >>> mydept.certificates.addCertificate(mycert) 343 >>> mycert.addC ourseRef(mycourse)343 >>> mycert.addCertCourse(mycourse) 344 344 345 345 >>> transaction.commit() … … 354 354 ['mydept'] 355 355 356 The c ourse referrerwe stored in the certificate is indeed a356 The certificate course we stored in the certificate is indeed a 357 357 referrer of the course, not a copy of it: 358 358
Note: See TracChangeset for help on using the changeset viewer.