[Zodb-checkins] CVS: Zope3/src/zope/testing - functional.py:1.13

Marius Gedminas mgedmin at codeworks.lt
Fri Aug 1 06:51:11 EDT 2003


Update of /cvs-repository/Zope3/src/zope/testing
In directory cvs.zope.org:/tmp/cvs-serv2430/src/zope/testing

Modified Files:
	functional.py 
Log Message:
Make FunctionalTestCase.getRootFolder() return context wrapped root folder
(SteveA said so)


=== Zope3/src/zope/testing/functional.py 1.12 => 1.13 ===
--- Zope3/src/zope/testing/functional.py:1.12	Thu Jul 31 12:51:57 2003
+++ Zope3/src/zope/testing/functional.py	Fri Aug  1 05:51:05 2003
@@ -30,6 +30,7 @@
 from zodb.storage.memory import MemoryFullStorage
 from zodb.storage.demo import DemoStorage
 from zope.app import Application
+from zope.app.context import ContextWrapper
 from zope.app.publication.zopepublication import ZopePublication
 from zope.app.publication.http import HTTPPublication
 from zope.publisher.browser import BrowserRequest
@@ -122,7 +123,7 @@
         """Returns the Zope root folder."""
         self.connection = self.db.open()
         root = self.connection.root()
-        return root[ZopePublication.root_name]
+        return ContextWrapper(root[ZopePublication.root_name], None)
 
     def getApplication(self):
         """Returns the Zope application instance."""




More information about the Zodb-checkins mailing list