[Erp5-report] r34497 kazuhiko - /erp5/trunk/products/ERP5/Document/BusinessPath.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 13 14:17:39 CEST 2010


Author: kazuhiko
Date: Tue Apr 13 14:17:38 2010
New Revision: 34497

URL: http://svn.erp5.org?rev=34497&view=rev
Log:
no need to override test() here. we can use Predicate.test() just as it is.

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=34497&r1=34496&r2=34497&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessPath.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessPath.py [utf8] Tue Apr 13 14:17:38 2010
@@ -370,19 +370,6 @@
         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')




More information about the Erp5-report mailing list