[Zope3-checkins] CVS: Zope3/src/zope/app/dav - propfind.py:1.5
Sidnei da Silva
sidnei@x3ng.com.br
Thu, 22 May 2003 11:11:29 -0400
Update of /cvs-repository/Zope3/src/zope/app/dav
In directory cvs.zope.org:/tmp/cvs-serv14523/src/zope/app/dav
Modified Files:
propfind.py
Log Message:
Changed use of encoding in DAV output as suggested by Fred. For UTF-8, the encoding pseudo-attribute of the XML declaration doesn't need to be set: it's UTF-8 by default if it isn't UTF-16.
=== Zope3/src/zope/app/dav/propfind.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/dav/propfind.py:1.4 Thu May 22 09:58:53 2003
+++ Zope3/src/zope/app/dav/propfind.py Thu May 22 11:10:58 2003
@@ -149,7 +149,7 @@
self._depthRecurse(ms)
- body = response.toxml('utf-8')
+ body = response.toxml().encode('utf-8')
request.response.setBody(body)
request.response.setStatus(207)
return body