[Erp5-report] r34373 tatuya - /erp5/trunk/products/ERP5/Document/BusinessPath.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 8 12:27:24 CEST 2010


Author: tatuya
Date: Thu Apr  8 12:27:21 2010
New Revision: 34373

URL: http://svn.erp5.org?rev=34373&view=rev
Log:
Make it use test method directly.

Modified:
    erp5/trunk/products/ERP5/Document/BusinessPath.py

Modified: erp5/trunk/products/ERP5/Document/BusinessPath.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessPath.py?rev=34373&r1=34372&r2=34373&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessPath.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessPath.py [utf8] Thu Apr  8 12:27:21 2010
@@ -378,7 +378,9 @@
     """
     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,




More information about the Erp5-report mailing list