Changeset 3833 for waeup/branches/ulif-rewrite
- Timestamp:
- 1 Jan 2009, 16:50:31 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/README.txt
r3523 r3833 5 5 6 6 A portal software for student registration. 7 8 Prerequisites 9 ============= 10 11 Before we can work with the environment, we have to register all the 12 utilities, adapters, etc. We grok the `waeup` package to do that:: 13 14 >>> import grok 15 >>> grok.testing.grok('waeup') 7 16 8 17 Universities … … 24 33 u'Unnamed' 25 34 26 Universities are basically also containers for faculties. 35 Universities are basically also containers for faculties, students and 36 hostels:: 37 38 >>> u['faculties'] 39 <waeup.university.facultycontainer.FacultyContainer object at 0x...> 40 41 >>> u['students'] 42 <waeup.students.studentcontainer.StudentContainer object at 0x...> 43 44 >>> u['hostels'] 45 <waeup.hostel.hostelcontainer.HostelContainer object at 0x...> 27 46 28 47 Faculties … … 34 53 We can create faculties easily:: 35 54 36 >>> from waeup. appimport Faculty55 >>> from waeup.university.faculty import Faculty 37 56 >>> f = Faculty() 38 57 >>> f 39 <waeup. app.Faculty object at 0x...>58 <waeup.university.faculty.Faculty object at 0x...> 40 59 41 60 Also faculties want to be named::
Note: See TracChangeset for help on using the changeset viewer.