Commit ddd5eb55 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type: Access wrapped method in a consistent fashion.

"self._m" may trigger "implicit self argument" magic. Follow how the
rest of this class accesses this property.
parent 74945bd0
...@@ -186,7 +186,7 @@ class WorkflowMethod(Method): ...@@ -186,7 +186,7 @@ class WorkflowMethod(Method):
except AttributeError: except AttributeError:
# XXX instance is unwrapped(no acquisition) # XXX instance is unwrapped(no acquisition)
# XXX I must think that what is a correct behavior.(Yusei) # XXX I must think that what is a correct behavior.(Yusei)
return self._m(instance, *args, **kw) return self.__dict__['_m'](instance, *args, **kw)
# Build a list of transitions which may need to be invoked # Build a list of transitions which may need to be invoked
instance_path = instance.getPhysicalPath() instance_path = instance.getPhysicalPath()
......
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