Commit 2ea1b7a5 authored by Tatuya Kamada's avatar Tatuya Kamada

Make it use test method directly.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34373 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3b7afff8
No related merge requests found
......@@ -378,7 +378,9 @@ class BusinessPath(Path, Predicate):
"""
if not self.getTestMethodId():
return True
return Predicate.test(self, *args, **kw)
test_method_id = self.getTestMethodId()
method = getattr(self, test_method_id)
return method(*args, **kw)
# IBusinessPath implementation
security.declareProtected(Permissions.AccessContentsInformation,
......
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