=== modified file 'src/ZPublisher/HTTPRequest.py' --- src/ZPublisher/HTTPRequest.py 2010-04-16 14:26:55 +0000 +++ src/ZPublisher/HTTPRequest.py 2010-05-17 18:46:54 +0000 @@ -232,6 +232,13 @@ other['VirtualRootPhysicalPath'] = parents[-1].getPhysicalPath() self._resetURLS() + def getVirtualRoot(self): + """ Return a slash-separated virtual root. + + If it is same as the physical root, return ''. + """ + return '/'.join([''] + self._script) + def physicalPathToVirtualPath(self, path): """ Remove the path to the VirtualRoot from a physical path """ if type(path) is type(''):