[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/http/put.py - fix broken ambigous IWriteFile assumptions

Christian Theune ct at gocept.com
Fri Sep 29 02:54:45 EDT 2006


Log message for revision 70435:
   - fix broken ambigous IWriteFile assumptions
  

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

-=-
Modified: Zope3/trunk/src/zope/app/http/put.py
===================================================================
--- Zope3/trunk/src/zope/app/http/put.py	2006-09-29 06:53:22 UTC (rev 70434)
+++ Zope3/trunk/src/zope/app/http/put.py	2006-09-29 06:54:45 UTC (rev 70435)
@@ -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 Zope3-Checkins mailing list