[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/ServiceManager/tests - testServiceManager.py:1.1.2.4
Gary Poster
garyposter@earthlink.net
Sun, 14 Apr 2002 23:32:00 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/ServiceManager/tests
In directory cvs.zope.org:/tmp/cvs-serv19265/App/OFS/ServiceManager/tests
Modified Files:
Tag: Zope-3x-branch
testServiceManager.py
Log Message:
This commit sets up the hook tag so that it actually works, and uses the new functionality to better divide up the labor of the ComponentArchitecture. The placeless ComponentArchitecture code for getService is still there, but the placeful code has been moved to the ServiceManager section. A few other hooks are also set up in ComponentArchitecture, and a few changes made in preparation for a later update of some placeful services.
The ServiceManager test was altered to use the newly moved placeful getService code.
Other hooks can now be set up and used using this hopefully helpful mechanism.
=== Zope3/lib/python/Zope/App/OFS/ServiceManager/tests/testServiceManager.py 1.1.2.3 => 1.1.2.4 ===
from Zope.App.OFS.ServiceManager.ServiceManager import ServiceManager
from Zope.Testing.CleanUp import CleanUp # Base class w registry cleanup
-from Zope.ComponentArchitecture import getService, provideService
+from Zope.App.OFS.ServiceManager.hooks import _getService as getService
+from Zope.ComponentArchitecture import provideService # getService should be local type above
from Zope.ComponentArchitecture import defineService
from Zope.Exceptions import ZopeError