Commit 3829b68e authored by 's avatar

- LP #933307: Fixed ++skin++ namespace handling.

parent 8c5288fa
...@@ -1532,9 +1532,16 @@ class HTTPRequest(BaseRequest): ...@@ -1532,9 +1532,16 @@ class HTTPRequest(BaseRequest):
def taintWrapper(self, enabled=TAINTING_ENABLED): def taintWrapper(self, enabled=TAINTING_ENABLED):
return enabled and TaintRequestWrapper(self) or self return enabled and TaintRequestWrapper(self) or self
# Original version: zope.publisher.http.HTTPRequest.shiftNameToApplication
def shiftNameToApplication(self): def shiftNameToApplication(self):
"""see zope.publisher.interfaces.http.IVirtualHostRequest""" """see zope.publisher.interfaces.http.IVirtualHostRequest"""
# this is needed for ++skin++ if len(self._steps) == 1:
self._script.append(self._steps.pop())
self._resetURLS()
return
raise ValueError("Can only shift leading traversal "
"names to application names")
def getURL(self): def getURL(self):
return self.URL return self.URL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment