[Zope3-checkins]
SVN: Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/http.py
Added backward compatible body
Jim Fulton
jim at zope.com
Fri Sep 2 17:06:44 EDT 2005
Log message for revision 38261:
Added backward compatible 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 21:06:42 UTC (rev 38260)
+++ Zope3/branches/stephan_and_jim-response-refactor/src/zope/publisher/http.py 2005-09-02 21:06:44 UTC (rev 38261)
@@ -701,6 +701,14 @@
if not self._status_set:
self.setStatus(200)
+ # XXX BBB
+ def _body(self):
+ try:
+ return self.result.__body
+ except AttributeError:
+ self.result.__body = ''.join(self.result.body)
+ return self.result.__body
+ _body = property(_body)
def _implicitResult(self, body):
encoding = getCharsetUsingRequest(self._request) or 'utf-8'
More information about the Zope3-Checkins
mailing list