[Zope-Checkins] SVN: Zope/trunk/src/ZPublisher/BaseRequest.py forward-port r105078 to trunk

Andreas Zeidler az at zitc.de
Thu Oct 15 07:08:20 EDT 2009


Log message for revision 105079:
  forward-port r105078 to trunk

Changed:
  U   Zope/trunk/src/ZPublisher/BaseRequest.py

-=-
Modified: Zope/trunk/src/ZPublisher/BaseRequest.py
===================================================================
--- Zope/trunk/src/ZPublisher/BaseRequest.py	2009-10-15 11:03:28 UTC (rev 105078)
+++ Zope/trunk/src/ZPublisher/BaseRequest.py	2009-10-15 11:08:20 UTC (rev 105079)
@@ -211,8 +211,10 @@
         self._held=None
 
     def close(self):
+        notify(EndRequestEvent(None, self))
+        # subscribers might need the zodb, so `clear` must come afterwards
+        # (since `self._held=None` might close the connection, see above)
         self.clear()
-        notify(EndRequestEvent(None, self))
 
     def processInputs(self):
         """Do any input processing that could raise errors



More information about the Zope-Checkins mailing list