[Zope3-checkins] CVS: Zope3/src/zope/app/publication - browser.py:1.9.26.2

Jim Fulton jim at zope.com
Tue Sep 9 12:47:36 EDT 2003


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

Modified Files:
      Tag: parentgeddon-branch
	browser.py 
Log Message:
got more tests to pass

=== Zope3/src/zope/app/publication/browser.py 1.9.26.1 => 1.9.26.2 ===
--- Zope3/src/zope/app/publication/browser.py:1.9.26.1	Mon Sep  8 14:21:44 2003
+++ Zope3/src/zope/app/publication/browser.py	Tue Sep  9 11:47:05 2003
@@ -50,12 +50,16 @@
         r = ()
 
         if IBrowserPublisher.isImplementedBy(removeAllProxies(ob)):
+            # ob is already proxied, so the result of calling a method will be
             return ob.browserDefault(request)
         else:
             adapter = queryView(ob, '_traverse', request , None)
             if adapter is not None:
-                return adapter.browserDefault(request)
+                ob, path = adapter.browserDefault(request)
+                ob = ProxyFactory(ob)
+                return ob, path
             else:
+                # ob is already proxied
                 return (ob, None)
 
     def afterCall(self, request):




More information about the Zope3-Checkins mailing list