[Zope-Checkins] CVS: Packages/webdav - Resource.py:1.55.10.8
Chris McDonough
chrism at plope.com
Wed Dec 22 18:06:17 EST 2004
Update of /cvs-repository/Packages/webdav
In directory cvs.zope.org:/tmp/cvs-serv1499
Modified Files:
Tag: Zope-2_7-branch
Resource.py
Log Message:
Work around MSIE WebFolder bug, where creation and modified date are not displayed properly. This is the same thing that Apache DAV does, FWIW.
=== Packages/webdav/Resource.py 1.55.10.7 => 1.55.10.8 ===
--- Packages/webdav/Resource.py:1.55.10.7 Wed Dec 1 18:01:48 2004
+++ Packages/webdav/Resource.py Wed Dec 22 18:06:16 2004
@@ -258,6 +258,13 @@
cmd=davcmds.PropFind(REQUEST)
result=cmd.apply(self)
RESPONSE.setStatus(207)
+ # work around MSIE DAV bug for creation and modified date
+ if (REQUEST.get_header('User-Agent') ==
+ 'Microsoft Data Access Internet Publishing Provider DAV 1.1'):
+ result = result.replace('<n:getlastmodified xmlns:n="DAV:">',
+ '<n:getlastmodified xmlns:n="DAV:" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" b:dt="dateTime.rfc1123">')
+ result = result.replace('<n:creationdate xmlns:n="DAV:">',
+ '<n:creationdate xmlns:n="DAV:" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" b:dt="dateTime.tz">')
RESPONSE.setHeader('Content-Type', 'text/xml; charset="utf-8"')
RESPONSE.setBody(result)
return RESPONSE
More information about the Zope-Checkins
mailing list