Commit 4f85e9fe authored by Florent Guillaume's avatar Florent Guillaume

Added methods used by Five.

parent e396bd10
......@@ -1336,6 +1336,16 @@ class HTTPRequest(BaseRequest):
def taintWrapper(self, enabled=TAINTING_ENABLED):
return enabled and TaintRequestWrapper(self) or self
# Used by Five
def getPresentationSkin(self):
"""see zope.component.interfaces.IPresentationRequest"""
return getattr(self, '_presentation_skin', None)
def setPresentationSkin(self, skin):
"""see zope.publisher.interfaces.IPublicationRequest"""
self._presentation_skin = skin
class TaintRequestWrapper:
def __init__(self, req):
......
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