Send an IEndRequestEvent at the end of a Zope 2 request. This is needed

to reset the site thread local variable; otherwise local sites would be
carried across browser requests which wouldn't be desirable
parent 0fd17a7c
......@@ -14,11 +14,13 @@
$Id$
"""
from urllib import quote
import xmlrpc
from zExceptions import Forbidden
from zope.event import notify
from zope.app.publication.interfaces import EndRequestEvent
UNSPECIFIED_ROLES=''
try:
......@@ -83,6 +85,7 @@ class BaseRequest:
def close(self):
self.other.clear()
self._held=None
notify(EndRequestEvent(None, self))
def processInputs(self):
"""Do any input processing that could raise errors
......
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