Commit 2c0ce2cf authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

pass selection_name in calling a method in Selection.__call__().

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13691 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent db489629
......@@ -196,13 +196,13 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
if callable(method):
if self.domain is not None and self.report is not None:
result = method(selection_domain = self.domain,
selection_report = self.report, selection=self, **kw)
selection_report = self.report, selection=self, selection_name=self.name, **kw)
elif self.domain is not None:
result = method(selection_domain = self.domain, selection=self, **kw)
result = method(selection_domain = self.domain, selection=self, selection_name=self.name, **kw)
elif self.report is not None:
result = method(selection_report = self.report, selection=self, **kw)
result = method(selection_report = self.report, selection=self, selection_name=self.name, **kw)
else:
result = method(selection=self, **kw)
result = method(selection=self, selection_name=self.name, **kw)
return result
else:
return []
......
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