[Zope3-checkins] SVN: Zope3/branches/3.2/src/zope/app/http/put.py -
backported fix for broken put factory due to ambigous
IWriteFile assumptions
Christian Theune
ct at gocept.com
Fri Sep 29 02:55:46 EDT 2006
Log message for revision 70436:
- backported fix for broken put factory due to ambigous IWriteFile assumptions
Changed:
U Zope3/branches/3.2/src/zope/app/http/put.py
-=-
Modified: Zope3/branches/3.2/src/zope/app/http/put.py
===================================================================
--- Zope3/branches/3.2/src/zope/app/http/put.py 2006-09-29 06:54:45 UTC (rev 70435)
+++ Zope3/branches/3.2/src/zope/app/http/put.py 2006-09-29 06:55:45 UTC (rev 70436)
@@ -105,10 +105,6 @@
body = self.request.bodyStream
file = self.context
adapter = IWriteFile(file)
+ adapter.write(body.read())
- chunk = body.read(2**6)
- while chunk:
- adapter.write(chunk)
- chunk = body.read(2**6)
-
return ''
More information about the Zope3-Checkins
mailing list