[Zope-Checkins] CVS: Zope2 - CopySupport.py:1.72
Brian Lloyd
brian@digicool.com
Thu, 21 Jun 2001 13:38:46 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/OFS
In directory korak.digicool.com:/home/brian/temp/mainline/lib/python/OFS
Modified Files:
CopySupport.py
Log Message:
Fixed issue #2205: manage_afterClone hook on object copy was called before
the cloned object was reattached to the object tree, which caused reindexing
of copied objects to fail.
--- Updated File CopySupport.py in package Zope2 --
--- CopySupport.py 2001/04/16 16:27:38 1.71
+++ CopySupport.py 2001/06/21 17:38:46 1.72
@@ -227,10 +227,11 @@
message=sys.exc_info()[1],
action ='manage_main')
ob=ob._getCopy(self)
- ob.manage_afterClone(ob)
id=self._get_id(ob.getId())
ob._setId(id)
self._setObject(id, ob)
+ ob = self._getOb(id)
+ ob.manage_afterClone(ob)
if REQUEST is not None:
return self.manage_main(self, REQUEST, update_menu=1,