[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests - test_nextservice.py:1.8.2.1

Jim Fulton jim at zope.com
Mon Sep 8 15:22:05 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/component/tests
In directory cvs.zope.org:/tmp/cvs-serv20092/src/zope/app/component/tests

Modified Files:
      Tag: parentgeddon-branch
	test_nextservice.py 
Log Message:
Checking in work in progress on parentgeddon-branch so Fred can help
me to get the tests passing.  Specific log entries will be provided
when we merge this into the head.


=== Zope3/src/zope/app/component/tests/test_nextservice.py 1.8 => 1.8.2.1 ===
--- Zope3/src/zope/app/component/tests/test_nextservice.py:1.8	Tue Sep  2 16:46:45 2003
+++ Zope3/src/zope/app/component/tests/test_nextservice.py	Mon Sep  8 14:21:34 2003
@@ -23,7 +23,6 @@
 from zope.component.exceptions import ComponentLookupError
 from zope.component.interfaces import IServiceService
 from zope.component.service import serviceManager
-from zope.context import Wrapper
 from zope.interface import implements, directlyProvides
 
 
@@ -40,11 +39,16 @@
 
     def setSiteManager(self, sm):
         self.sm = sm
+        sm.__parent__ = self
         directlyProvides(self, ISite)
 
 class Root(Folder):
     implements(IContainmentRoot)
 
+
+def Wrapper(ob, container):
+    ob.__parent__ = container
+    return ob
 
 class Test(TestCase):
 




More information about the Zope3-Checkins mailing list