Skip to content

Commit

Permalink
- LP #933307: Fixed ++skin++ namespace handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Feb 16, 2012
1 parent 8c5288f commit 3829b68
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ZPublisher/HTTPRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1532,9 +1532,16 @@ def _authUserPW(self):
def taintWrapper(self, enabled=TAINTING_ENABLED):
return enabled and TaintRequestWrapper(self) or self

# Original version: zope.publisher.http.HTTPRequest.shiftNameToApplication
def shiftNameToApplication(self):
"""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):
return self.URL
Expand Down

0 comments on commit 3829b68

Please sign in to comment.