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

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

Reply via email to