Log message for revision 105080:
  back-port r105078 to 2.11

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

-=-
Modified: Zope/branches/2.11/lib/python/ZPublisher/BaseRequest.py
===================================================================
--- Zope/branches/2.11/lib/python/ZPublisher/BaseRequest.py     2009-10-15 
11:08:20 UTC (rev 105079)
+++ Zope/branches/2.11/lib/python/ZPublisher/BaseRequest.py     2009-10-15 
11:16:52 UTC (rev 105080)
@@ -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

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to