[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins] SVN: Zope/trunk/lib/python/webdav/Resource.py Work
From:       Chris McDonough <chrism () plope ! com>
Date:       2004-12-22 23:07:56
Message-ID: 20041222230756.D1B6D203249 () mail ! zope ! org
[Download RAW message or body]

Log message for revision 28690:
  Work around for MSIE WebFolder view not properly showing modified and created date. \
This is the same thing that Apache DAV does, FWIW.  

Changed:
  U   Zope/trunk/lib/python/webdav/Resource.py

-=-
Modified: Zope/trunk/lib/python/webdav/Resource.py
===================================================================
--- Zope/trunk/lib/python/webdav/Resource.py	2004-12-22 20:47:04 UTC (rev 28689)
+++ Zope/trunk/lib/python/webdav/Resource.py	2004-12-22 23:07:56 UTC (rev 28690)
@@ -258,6 +258,13 @@
         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">')  
     def PROPPATCH(self, REQUEST, RESPONSE):
         """Set and/or remove properties defined on the resource."""

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic