[Zope3-checkins] CVS: Zope3/src/zope/app/process/tests - test_bootstrap.py:1.4

Jim Fulton jim at zope.com
Sun Sep 21 13:32:35 EDT 2003


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

Modified Files:
	test_bootstrap.py 
Log Message:
Use the rootFolder helper function rather than the RootFolder class.

Changed to use __setitem__ rather than setObject


=== Zope3/src/zope/app/process/tests/test_bootstrap.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/process/tests/test_bootstrap.py:1.3	Tue Sep  2 16:46:48 2003
+++ Zope3/src/zope/app/process/tests/test_bootstrap.py	Sun Sep 21 13:32:35 2003
@@ -20,7 +20,7 @@
 from transaction import get_transaction
 from zodb.db import DB
 from zodb.storage.memory import MemoryFullStorage
-from zope.app.content.folder import RootFolder
+from zope.app.content.folder import rootFolder
 from zope.app.interfaces.content.folder import IRootFolder
 from zope.app.interfaces.services.error import IErrorReportingService
 from zope.app.interfaces.services.principalannotation \
@@ -53,7 +53,7 @@
     def createRootFolder(self):
         cx = self.db.open()
         root = cx.root()
-        self.root_folder = RootFolder()
+        self.root_folder = rootFolder()
         root[ZopePublication.root_name] = self.root_folder
         get_transaction().commit()
         cx.close()
@@ -61,9 +61,9 @@
     def createRFAndSM(self):
         cx = self.db.open()
         root = cx.root()
-        self.root_folder = RootFolder()
+        self.root_folder = rootFolder()
         root[ZopePublication.root_name] = self.root_folder
-        self.service_manager = ServiceManager()
+        self.service_manager = ServiceManager(self.root_folder)
         self.root_folder.setSiteManager(self.service_manager)
         get_transaction().commit()
         cx.close()




More information about the Zope3-Checkins mailing list