The DAVAwareFileAdapter currently passes the file's string content
both as BODY and BODYFILE in the FauxDAVRequest. This causes problems
in Archetypes' BaseContent.PUT() because it expects BODYFILE to be an
actual file object.
This patch against CMFCore/trunk uses cStringIO to make a file object
for BODYFILE.
Could someone with permission check this (or something like it) in?
Thanks,
Brent
Index: content.py
===================================================================
--- content.py (revision 39876)
+++ content.py (working copy)
@@ -319,6 +319,8 @@
import_context.note('SGAIFA',
'no .ini file for %s/%s' % (subdir, cid))
else:
- request = FauxDAVRequest(BODY=data, BODYFILE=data)
+ import cStringIO
+ f = cStringIO.StringIO(data)
+ request = FauxDAVRequest(BODY=data, BODYFILE=f)
response = FauxDAVResponse()
self.context.PUT(request, response)
_______________________________________________
Zope-CMF maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope-cmf
See http://collector.zope.org/CMF for bug reports and feature requests