[Zope-Checkins] CVS: Zope/lib/python/webdav - Resource.py:1.50.10.2

Andreas Jung andreas@digicool.com
Thu, 29 Aug 2002 09:12:24 -0400


Update of /cvs-repository/Zope/lib/python/webdav
In directory cvs.zope.org:/tmp/cvs-serv12438

Modified Files:
      Tag: Zope-2_5-branch
	Resource.py 
Log Message:
Zope did not send a lock-token header when creating a lock
for an exisiting object (required by the WebDAV specs).
The same problem applies to non-existing documents but the
corresponding location is not identified yet.


=== Zope/lib/python/webdav/Resource.py 1.50.10.1 => 1.50.10.2 ===
--- Zope/lib/python/webdav/Resource.py:1.50.10.1	Wed Aug 14 12:48:11 2002
+++ Zope/lib/python/webdav/Resource.py	Thu Aug 29 09:12:22 2002
@@ -499,6 +499,7 @@
                 lock = self.wl_getLock(token)
                 RESPONSE.setStatus(200)
                 RESPONSE.setHeader('Content-Type', 'text/xml; charset="utf-8"')
+                RESPONSE.setHeader('Lock-Token', 'opaquelocktoken:' + token)
                 RESPONSE.setBody(lock.asXML())
         else:
             # There's no body, so this likely to be a refresh request