[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server - HTTPResponse.py:1.1.2.4
Shane Hathaway
shane@digicool.com
Fri, 16 Nov 2001 12:45:15 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Server
In directory cvs.zope.org:/tmp/cvs-serv26403
Modified Files:
Tag: Zope-3x-branch
HTTPResponse.py
Log Message:
Renamed stdout -> outstream
=== Zope3/lib/python/Zope/Server/HTTPResponse.py 1.1.2.3 => 1.1.2.4 ===
"""
- stdout=self.stdout
+ outstream=self.outstream
if not self._wrote:
l=self.headers.get('content-length', None)
@@ -149,7 +149,7 @@
except: pass
self._streaming=1
- stdout.write(str(self))
+ outstream.write(str(self))
self._wrote=1
if not data: return
@@ -159,7 +159,7 @@
t=self._tempfile
if t is None:
- stdout.write(data)
+ outstream.write(data)
else:
l=len(data)
b=self._tempstart
@@ -171,7 +171,7 @@
finally:
self._templock.release()
self._tempstart=e
- stdout.write(file_part_producer(t,self._templock,b,e), l)
+ outstream.write(file_part_producer(t,self._templock,b,e), l)
_retried_response = None
@@ -182,17 +182,17 @@
finally:
self._retried_response = None
return
- stdout=self.stdout
+ outstream=self.outstream
t=self._tempfile
if t is not None:
- stdout.write(file_close_producer(t), 0)
+ outstream.write(file_close_producer(t), 0)
self._tempfile=None
- stdout.finish(self)
- stdout.close()
+ outstream.finish(self)
+ outstream.close()
- self.stdout=None # need to break cycle?
+ self.outstream=None # need to break cycle?
self._request=None
def retry(self):
@@ -202,7 +202,7 @@
# only stdout stderr were passed to the constructor. OTOH, I
# think that that's all that is ever passed.
- response=self.__class__(stdout=self.stdout, stderr=self.stderr)
+ response=self.__class__(self.outstream)
response._http_version=self._http_version
response._http_connection=self._http_connection
response._server_version=self._server_version