Commit df34859b authored by Jérome Perrin's avatar Jérome Perrin

don't test self._reindex twice


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18783 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eb2018ec
......@@ -98,7 +98,7 @@ class Setter(Method):
DeprecationWarning)
method = getattr(instance, '_' + self._id)
method(*args, **kw)
if self._reindex: instance.reindexObject() # XXX Should the Setter check
instance.reindexObject() # XXX Should the Setter check
# if the property value has changed
# to decide reindexing, like edit() ?
......
......@@ -98,7 +98,7 @@ class DefaultSetter(Method):
DeprecationWarning)
method = getattr(instance, '_' + self._id)
method(*args, **kw)
if self._reindex: instance.reindexObject()
instance.reindexObject()
class ListSetter(DefaultSetter):
......@@ -122,8 +122,7 @@ class ListSetter(DefaultSetter):
DeprecationWarning)
method = getattr(instance, '_' + self._id)
method(*args, **kw)
if self._reindex: instance.reindexObject()
instance.reindexObject()
Setter = ListSetter
......@@ -196,7 +195,7 @@ class SetSetter(Method):
DeprecationWarning)
method = getattr(instance, '_' + self._id)
method(*args, **kw)
if self._reindex: instance.reindexObject()
instance.reindexObject()
class DefaultGetter(Method):
"""
......
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