[Zope3-checkins] CVS: Zope3/src/zope/app/browser - absoluteurl.py:1.15.2.3

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


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

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

=== Zope3/src/zope/app/browser/absoluteurl.py 1.15.2.2 => 1.15.2.3 ===
--- Zope3/src/zope/app/browser/absoluteurl.py:1.15.2.2	Mon Sep  8 17:15:08 2003
+++ Zope3/src/zope/app/browser/absoluteurl.py	Tue Sep  9 11:47:03 2003
@@ -33,13 +33,13 @@
         context = self.context
         request = self.request
 
-        # We do this here do maintain the rule that we must be wrapped
+        
+        if sameProxiedObjects(context, request.getVirtualHostRoot()):
+            return request.getApplicationURL()
+
         container = getattr(context, '__parent__', None)
         if container is None:
             raise TypeError, _insufficientContext
-
-        if sameProxiedObjects(context, request.getVirtualHostRoot()):
-            return request.getApplicationURL()
 
         url = str(zapi.getView(container, 'absolute_url', request))
 




More information about the Zope3-Checkins mailing list