[Zope3-checkins] CVS: Zope3/src/zope/publisher/interfaces - http.py:1.15

Marius Gedminas mgedmin@codeworks.lt
Mon, 28 Apr 2003 09:14:52 -0400


Update of /cvs-repository/Zope3/src/zope/publisher/interfaces
In directory cvs.zope.org:/tmp/cvs-serv25303/src/zope/publisher/interfaces

Modified Files:
	http.py 
Log Message:
Virtual hosting did not work correctly in all cases (e.g. service configuration
paths did not have leading path elements truncated when they should have).
This is now fixed by adding a method getVirtualHostRoot to IVirtualHostRequest
and making AbsoluteURL views use that for identifying the virtual host root
instead of relying on special context wrappers.  Also added a functional test
to prevent regressions.



=== Zope3/src/zope/publisher/interfaces/http.py 1.14 => 1.15 ===
--- Zope3/src/zope/publisher/interfaces/http.py:1.14	Tue Apr 15 05:37:28 2003
+++ Zope3/src/zope/publisher/interfaces/http.py	Mon Apr 28 09:14:21 2003
@@ -60,6 +60,11 @@
 
         Should be called during traversal."""
 
+    def getVirtualHostRoot():
+        """Returns the object which is the virtual host root for this request,
+        or None if setVirtualHostRoot hasn't been called.
+        """
+
     def setApplicationNames(names):
         """Set the names which compose the application path.