[Zope-Checkins] CVS: Packages/webdav - Resource.py:1.47

Andreas Jung andreas@digicool.com
Thu, 2 Aug 2001 08:04:53 -0400

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

Modified Files:
Log Message:
Collector #2482: A COPY operation through WebDAV on a locked
resource left the destination resource in a locked state
so any WebDAV client  was unable to unlock the destination 
object. Locks are now cleared from the destination object.

=== Packages/webdav/Resource.py 1.46 => 1.47 ===
+        # We remove any locks from the copied object because webdav clients
+        # don't track the lock status and the lock token for copied resources
+        ob.wl_clearLocks()
         if depth=='0' and hasattr(ob, '__dav_collection__'):
             for id in ob.objectIds():