[Zope3-checkins] CVS: Zope3/src/zope/app/tests - setup.py:1.2
Steve Alexander
steve@cat-box.net
Wed, 4 Jun 2003 10:57:59 -0400
Update of /cvs-repository/Zope3/src/zope/app/tests
In directory cvs.zope.org:/tmp/cvs-serv19568/src/zope/app/tests
Modified Files:
setup.py
Log Message:
Installed and registered ZopeContainerDecorator.
For new code, it is now unnecessary to adapt a context-wrapped container
to ZopeContainerAdapter. The context-wrapper will do all the correct
wrapping and unwrapping, and will send the correct events.
Existing calls to getAdapter(container, IZopeContainer) are harmless, as
a context-wrapped container provides IZopeContainer. So, the getAdapter
call will simply return the already-wrapped container.
I'll be changing existing code to avoid using ZopeContainerAdapter.
=== Zope3/src/zope/app/tests/setup.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/tests/setup.py:1.1 Tue Jun 3 17:43:02 2003
+++ Zope3/src/zope/app/tests/setup.py Wed Jun 4 10:57:58 2003
@@ -128,8 +128,8 @@
root['folder2']['folder2_1'].setObject('folder2_1_1', Folder())
return root
-
-
+
+
from zope.app.services.service import ServiceManager
def createServiceManager(folder):
if not folder.hasServiceManager():
@@ -151,7 +151,7 @@
key = default.getConfigurationManager().setObject("", configuration)
zapi.traverse(default.getConfigurationManager(), key).status = Active
return zapi.traverse(servicemanager, path)
-
+
from zope.component import getServiceManager
from zope.app.interfaces.services.hub import IObjectHub