Changeset 4257 for waeup/branches/ulif-rewrite
- Timestamp:
- 12 Jun 2009, 08:42:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/university/department.txt
r4252 r4257 6 6 Creating departments 7 7 ==================== 8 9 Before we can create departments, we have to grok the `waeup` 10 package. This happens automatically in real-world use: 11 12 >>> import grok 13 >>> grok.testing.grok('waeup') 8 14 9 15 We can create departments: … … 15 21 16 22 Another way to create departments is by asking for a factory called 17 ``waeup.Department``. Before we can do this, we have to grok the 18 `waeup` package. This happens automatically in real-world use: 19 20 >>> import grok 21 >>> grok.testing.grok('waeup') 22 23 Now we can create a department without importing a class: 23 ``waeup.Department``. This way we can create a department without 24 importing a class: 24 25 25 26 >>> from zope.component import createObject
Note: See TracChangeset for help on using the changeset viewer.