[Zope3-checkins] SVN: Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/http.py Removed caching of _body

Jim Fulton jim at zope.com
Fri Sep 2 19:37:08 EDT 2005


Log message for revision 38278:
  Removed caching of _body
  

Changed:
  U   Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/http.py

-=-
Modified: Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/http.py
===================================================================
--- Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/http.py	2005-09-02 23:37:06 UTC (rev 38277)
+++ Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/http.py	2005-09-02 23:37:08 UTC (rev 38278)
@@ -713,11 +713,7 @@
 
     # XXX BBB
     def _body(self):
-        try:
-            return self.result.__body
-        except AttributeError:
-            self.result.__body = ''.join(self.result.body) 
-            return self.result.__body
+        return ''.join(self.result.body) 
     _body = property(_body)
 
     def _implicitResult(self, body):



More information about the Zope3-Checkins mailing list