[Zope3-checkins] CVS: Zope3/src/zope/app/publication - zopepublication.py:1.28

Jim Fulton jim@zope.com
Fri, 23 May 2003 18:10:49 -0400


Update of /cvs-repository/Zope3/src/zope/app/publication
In directory cvs.zope.org:/tmp/cvs-serv19046

Modified Files:
	zopepublication.py 
Log Message:
Add a context wrapper around the root object so that the wrapper
dictionary can be used for caching.


=== Zope3/src/zope/app/publication/zopepublication.py 1.27 => 1.28 ===
--- Zope3/src/zope/app/publication/zopepublication.py:1.27	Thu May  1 15:35:26 2003
+++ Zope3/src/zope/app/publication/zopepublication.py	Fri May 23 18:10:48 2003
@@ -26,6 +26,8 @@
 from zope.security.management import newSecurityManager
 from zope.security.checker import ProxyFactory
 
+from zope.proxy.context import ContextWrapper
+
 from zope.proxy.introspection import removeAllProxies
 
 from zope.app.interfaces.services.service import IServiceManagerContainer
@@ -151,7 +153,7 @@
         if app is None:
             raise SystemError, "Zope Application Not Found"
 
-        return ProxyFactory(app)
+        return ProxyFactory(ContextWrapper(app, None))
 
     def callObject(self, request, ob):
         return mapply(ob, request.getPositionalArguments(), request)