[Zope-Checkins] CVS: Zope/lib/python/webdav - NullResource.py:1.39 Resource.py:1.53
Andreas Jung
andreas@digicool.com
Thu, 29 Aug 2002 10:33:29 -0400
Update of /cvs-repository/Zope/lib/python/webdav
In directory cvs.zope.org:/tmp/cvs-serv6005
Modified Files:
NullResource.py Resource.py
Log Message:
backport of webdav compatibility fixes from 2.5 (lock-token header
missing when locking objects)
=== Zope/lib/python/webdav/NullResource.py 1.38 => 1.39 ===
--- Zope/lib/python/webdav/NullResource.py:1.38 Wed Aug 14 18:11:40 2002
+++ Zope/lib/python/webdav/NullResource.py Thu Aug 29 10:33:29 2002
@@ -203,8 +203,9 @@
else:
# The command was succesful
lock = locknull.wl_getLock(token)
- RESPONSE.setStatus(200)
+ RESPONSE.setStatus(200)
RESPONSE.setHeader('Content-Type', 'text/xml; charset="utf-8"')
+ RESPONSE.setHeader('Lock-Token', 'opaquelocktoken:' + token)
RESPONSE.setBody(lock.asXML())
=== Zope/lib/python/webdav/Resource.py 1.52 => 1.53 ===
--- Zope/lib/python/webdav/Resource.py:1.52 Wed Aug 14 18:11:40 2002
+++ Zope/lib/python/webdav/Resource.py Thu Aug 29 10:33:29 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