[Zope-Checkins] SVN: Zope/branches/2.10/lib/python/ZPublisher/BaseRequest.py back-port r105078 to 2.10

Andreas Zeidler az at zitc.de
Thu Oct 15 07:17:39 EDT 2009


Log message for revision 105081:
  back-port r105078 to 2.10

Changed:
  U   Zope/branches/2.10/lib/python/ZPublisher/BaseRequest.py

-=-
Modified: Zope/branches/2.10/lib/python/ZPublisher/BaseRequest.py
===================================================================
--- Zope/branches/2.10/lib/python/ZPublisher/BaseRequest.py	2009-10-15 11:16:52 UTC (rev 105080)
+++ Zope/branches/2.10/lib/python/ZPublisher/BaseRequest.py	2009-10-15 11:17:39 UTC (rev 105081)
@@ -208,8 +208,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