- Timestamp:
- 29 May 2011, 09:23:53 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/browser.txt
r6214 r6217 337 337 >>> print browser.contents 338 338 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"... 339 ...< div>The code chosen already exists in the database</div>339 ...<li class="message">Course exists already in...</li> 340 340 ... 341 341 -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificate.txt
r5978 r6217 338 338 >>> mycourse.code = 'MYCOURSE' 339 339 >>> mydept.courses.addCourse(mycourse) 340 'Course added (for tests only).' 340 341 >>> mycert = createObject('waeup.Certificate') 341 342 >>> mycert.code = 'MYCERT' 342 343 >>> mydept.certificates.addCertificate(mycert) 344 'Certificate added (for tests only).' 343 345 >>> mycert.addCourseRef(mycourse) 344 346 -
main/waeup.sirp/trunk/src/waeup/sirp/university/certificatecontainer.txt
r5140 r6217 72 72 >>> mycertificate = Certificate(code='CERTIFICATE1') 73 73 >>> mycontainer.addCertificate(mycertificate) 74 'Certificate added (for tests only).' 74 75 >>> list(mycontainer.keys()) 75 76 [u'CERTIFICATE1'] -
main/waeup.sirp/trunk/src/waeup/sirp/university/coursecontainer.txt
r5140 r6217 71 71 >>> mycourse = Course(code='COURSE1') 72 72 >>> mycontainer.addCourse(mycourse) 73 'Course added (for tests only).' 73 74 >>> list(mycontainer.keys()) 74 75 [u'COURSE1'] -
main/waeup.sirp/trunk/src/waeup/sirp/university/courserefs.txt
r5978 r6217 48 48 >>> course.code = 'CRS1' 49 49 >>> fac['DEPT'].courses.addCourse(course) 50 'Course added.' 50 51 51 52 Now let's add another department, which will also hold a course: … … 58 59 >>> course.code = 'CRS2' 59 60 >>> fac['DEPT2'].courses.addCourse(course) 61 'Course added.' 60 62 61 63 Finally, we add a certificate with referrers (certificate courses) to … … 65 67 >>> cert.code = 'CERT' 66 68 >>> fac['DEPT'].certificates.addCertificate(cert) 69 'Certificate added.' 67 70 68 71 >>> fac['DEPT'].certificates['CERT'].addCourseRef(
Note: See TracChangeset for help on using the changeset viewer.