Commit 89997d21 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

revert a part of r35960, because setId is called at most once.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35964 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cd02c7f2
...@@ -1648,7 +1648,6 @@ class Base( CopyContainer, ...@@ -1648,7 +1648,6 @@ class Base( CopyContainer,
getProperty = self.getProperty getProperty = self.getProperty
hasProperty = self.hasProperty hasProperty = self.hasProperty
_setProperty = self._setProperty _setProperty = self._setProperty
setId = self.setId
def setChangedPropertyList(key_list): def setChangedPropertyList(key_list):
not_modified_list = [] not_modified_list = []
...@@ -1687,7 +1686,7 @@ class Base( CopyContainer, ...@@ -1687,7 +1686,7 @@ class Base( CopyContainer,
# objects themselves cannot be used as keys. # objects themselves cannot be used as keys.
modified_object_dict[id(o)] = o modified_object_dict[id(o)] = o
else: else:
setId(kw['id'], reindex=reindex_object) self.setId(kw['id'], reindex=reindex_object)
else: else:
not_modified_list.append(key) not_modified_list.append(key)
return not_modified_list return not_modified_list
......
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