Changeset 6244 for main/waeup.sirp/trunk/src/waeup/sirp/university
- Timestamp:
- 30 May 2011, 07:17:03 (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.txt
r6217 r6244 338 338 >>> mycourse.code = 'MYCOURSE' 339 339 >>> mydept.courses.addCourse(mycourse) 340 'Course added (for tests only).'341 340 >>> mycert = createObject('waeup.Certificate') 342 341 >>> mycert.code = 'MYCERT' 343 342 >>> mydept.certificates.addCertificate(mycert) 344 'Certificate added (for tests only).'345 343 >>> mycert.addCourseRef(mycourse) 346 344 -
main/waeup.sirp/trunk/src/waeup/sirp/university/courserefs.txt
r6217 r6244 48 48 >>> course.code = 'CRS1' 49 49 >>> fac['DEPT'].courses.addCourse(course) 50 'Course added.'51 50 52 51 Now let's add another department, which will also hold a course: … … 59 58 >>> course.code = 'CRS2' 60 59 >>> fac['DEPT2'].courses.addCourse(course) 61 'Course added.'62 60 63 61 Finally, we add a certificate with referrers (certificate courses) to … … 67 65 >>> cert.code = 'CERT' 68 66 >>> fac['DEPT'].certificates.addCertificate(cert) 69 'Certificate added.'70 67 71 68 >>> fac['DEPT'].certificates['CERT'].addCourseRef(
Note: See TracChangeset for help on using the changeset viewer.