Changeset 4749 for waeup/branches/ulif-layout/src
- Timestamp:
- 8 Jan 2010, 14:31:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/university/courserefs.txt
r4488 r4749 38 38 >>> faculty = createObject('waeup.Faculty') 39 39 >>> faculty.code = 'FAC' 40 >>> root['app'] .faculties.addFaculty(faculty)41 >>> fac = root['app'] .faculties['FAC']40 >>> root['app']['faculties'].addFaculty(faculty) 41 >>> fac = root['app']['faculties']['FAC'] 42 42 43 43 >>> dept = createObject('waeup.Department') 44 44 >>> dept.code = 'DEPT' 45 >>> root['app'] .faculties['FAC'].addDepartment(dept)45 >>> root['app']['faculties']['FAC'].addDepartment(dept) 46 46 47 47 >>> course = createObject('waeup.Course') … … 53 53 >>> dept2 = createObject('waeup.Department') 54 54 >>> dept2.code = 'DEPT2' 55 >>> root['app'] .faculties['FAC'].addDepartment(dept2)55 >>> root['app']['faculties']['FAC'].addDepartment(dept2) 56 56 57 57 >>> course = createObject('waeup.Course') … … 86 86 (not only equal): 87 87 88 >>> a = root['app'] .faculties['FAC']['DEPT']88 >>> a = root['app']['faculties']['FAC']['DEPT'] 89 89 >>> b1 = a.courses['CRS1'] 90 90 >>> b2 = a.certificates['CERT']['CRS1_100'].course … … 101 101 [u'CRS1'] 102 102 103 >>> del root['app'] .faculties['FAC']['DEPT'].courses['CRS1']103 >>> del root['app']['faculties']['FAC']['DEPT'].courses['CRS1'] 104 104 >>> list(a.certificates['CERT']) 105 105 [u'CRS2_100', u'CRS2_200']
Note: See TracChangeset for help on using the changeset viewer.