Commit 3fa3d786 authored by Jérome Perrin's avatar Jérome Perrin

call _delObject directly, manage_delObjects has some side effects


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16297 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 19ef5859
...@@ -15,7 +15,7 @@ def changeObjectClass(self, object_id, new_class): ...@@ -15,7 +15,7 @@ def changeObjectClass(self, object_id, new_class):
"""Creates a copy of object_id inside self, changing its class to """Creates a copy of object_id inside self, changing its class to
new_class""" new_class"""
old_obj = self._getOb(object_id) old_obj = self._getOb(object_id)
self.manage_delObjects([object_id]) self._delObject(object_id)
new_obj = new_class(object_id) new_obj = new_class(object_id)
new_obj.__dict__.update(old_obj.__dict__) new_obj.__dict__.update(old_obj.__dict__)
self._setObject(object_id, new_obj) self._setObject(object_id, new_obj)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment