Changeset 5140 for main/waeup.sirp/trunk/src/waeup/sirp/hostel
- Timestamp:
- 12 Apr 2010, 14:28:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/hostel/hostelcontainer.txt
r4920 r5140 4 4 Containers for hostels. 5 5 6 :Test-Layer: unit 6 .. :doctest: 7 .. :layer: waeup.sirp.testing.WAeUPSIRPUnitTestLayer 7 8 8 9 Getting a hostel container … … 22 23 Another way to get a hostel container -- without importing the class 23 24 -- is via factories. We registered a factory for hostel containers 24 under the name ``waeup.HostelContainer``:: 25 26 >>> import grok 27 >>> grok.testing.grok('waeup') 28 29 Now we can ask for an object by calling the appropriate factory: 25 under the name ``waeup.HostelContainer``. So we can ask for an object 26 by calling the appropriate factory: 30 27 31 28 >>> from zope.component import createObject
Note: See TracChangeset for help on using the changeset viewer.