[Zope-Checkins] SVN: Zope/trunk/lib/python/webdav/Resource.py Work around for MSIE WebFolder view not properly showing modified and created date. This is the same thing that Apache DAV does, FWIW.

Sidnei da Silva sidnei at awkly.org
Wed Dec 22 18:16:36 EST 2004


|          RESPONSE.setHeader('Content-Type', 'text/xml; charset="utf-8"')
|          RESPONSE.setBody(result)
|          return RESPONSE
| +        # 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">')
|  

That patch seems off by a few lines.

-- 
Sidnei da Silva <sidnei at awkly.org>
http://awkly.org - dreamcatching :: making your dreams come true
http://www.enfoldsystems.com
http://plone.org/about/team#dreamcatcher

  The first condition of immortality is death. -Stanislaw Lec


More information about the Zope-Checkins mailing list