From 2ea1b7a5c87ed59188543313a3cfd2a11118ea6d Mon Sep 17 00:00:00 2001
From: Tatuya Kamada <tatuya@nexedi.com>
Date: Thu, 8 Apr 2010 10:27:21 +0000
Subject: [PATCH] Make it use test method directly.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34373 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessPath.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/Document/BusinessPath.py b/product/ERP5/Document/BusinessPath.py
index 25fb72a916..8ccf7aac08 100644
--- a/product/ERP5/Document/BusinessPath.py
+++ b/product/ERP5/Document/BusinessPath.py
@@ -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,
-- 
2.30.9