[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - placefulsetup.py:1.28

Jim Fulton jim at zope.com
Sun Sep 21 13:33:09 EDT 2003


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

Modified Files:
	placefulsetup.py 
Log Message:
No-longer use context wrappers.

Use rootFolder helper function rather than RootFolder class.


=== Zope3/src/zope/app/services/tests/placefulsetup.py 1.27 => 1.28 ===
--- Zope3/src/zope/app/services/tests/placefulsetup.py:1.27	Thu Jul 31 17:35:16 2003
+++ Zope3/src/zope/app/services/tests/placefulsetup.py	Sun Sep 21 13:33:09 2003
@@ -18,8 +18,7 @@
 from zope.app import zapi
 from zope.app.tests import setup
 from zope.app.tests.placelesssetup import PlacelessSetup
-from zope.app.content.folder import RootFolder
-from zope.app.context import ContextWrapper
+from zope.app.content.folder import rootFolder
 
 class Place(object):
 
@@ -36,7 +35,6 @@
         except KeyError:
             root = inst.rootFolder = setup.buildSampleFolderTree()
 
-        root = ContextWrapper(root, None)
         return zapi.traverse(root, self.path)
 
 class PlacefulSetup(PlacelessSetup):
@@ -75,7 +73,7 @@
         return setup.createServiceManager(folder)
 
     def createRootFolder(self):
-        self.rootFolder = RootFolder()
+        self.rootFolder = rootFolder()
 
     # The following is a hook that some base classes might want to override.
     def getObjectHub(self):




More information about the Zope3-Checkins mailing list