Commit 9152b6e9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

no need to override test() here. we can use Predicate.test() just as it is.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34497 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 244e6dcc
......@@ -370,19 +370,6 @@ class BusinessPath(Path, Predicate):
portal_type='Simulation Movement'))
return movement_list
# IPredicate implementation
security.declareProtected(Permissions.AccessContentsInformation, 'test')
def test(self, *args, **kw):
"""
Returns whether the business path is used or not by a given movement context.
If test method is not defined in a business path, returns True
"""
if not self.getTestMethodId():
return True
test_method_id = self.getTestMethodId()
method = getattr(self, test_method_id)
return method(*args, **kw)
# IBusinessPath implementation
security.declareProtected(Permissions.AccessContentsInformation,
'getRelatedSimulationMovementValueList')
......
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