Log message for revision 69726: Merged r69717:69724 from 2.9 branch. webdav.Resource.COPY did not send ObjectClonedEvent. Fixes http://www.zope.org/Collectors/Zope/2169
Changed: A Zope/trunk/lib/python/OFS/tests/testCopySupportHooks.py U Zope/trunk/lib/python/webdav/Resource.py -=- Copied: Zope/trunk/lib/python/OFS/tests/testCopySupportHooks.py (from rev 69724, Zope/branches/2.9/lib/python/OFS/tests/testCopySupportHooks.py) Modified: Zope/trunk/lib/python/webdav/Resource.py =================================================================== --- Zope/trunk/lib/python/webdav/Resource.py 2006-08-22 10:55:38 UTC (rev 69725) +++ Zope/trunk/lib/python/webdav/Resource.py 2006-08-22 11:24:57 UTC (rev 69726) @@ -45,7 +45,11 @@ from interfaces import IWriteLock from WriteLockInterface import WriteLockInterface +from zope.event import notify +from OFS.event import ObjectClonedEvent +import OFS.subscribers + class Resource(ExtensionClass.Base, Lockable.LockableItem): """The Resource mixin class provides basic WebDAV support for @@ -399,7 +403,11 @@ parent._setObject(name, ob) ob = parent._getOb(name) ob._postCopy(parent, op=0) - ob.manage_afterClone(ob) + + OFS.subscribers.compatibilityCall('manage_afterClone', ob, ob) + + notify(ObjectClonedEvent(ob)) + # 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() _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins