[Checkins] SVN: Zope3/branches/3.3/src/zope/app/http/put.py - backported fix that broke ambigous IWriteFile assumptions

Christian Theune ct at gocept.com
Fri Sep 29 02:53:23 EDT 2006


Log message for revision 70434:
   - backported fix that broke ambigous IWriteFile assumptions
  

Changed:
  U   Zope3/branches/3.3/src/zope/app/http/put.py

-=-
Modified: Zope3/branches/3.3/src/zope/app/http/put.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/http/put.py	2006-09-29 06:50:23 UTC (rev 70433)
+++ Zope3/branches/3.3/src/zope/app/http/put.py	2006-09-29 06:53:22 UTC (rev 70434)
@@ -109,10 +109,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 Checkins mailing list