diff --git a/product/ERP5/Interface/Predicate.py b/product/ERP5/Interface/Predicate.py index 37e2c85c7ee9290814296e93bf39922ec3c289fd..9936dfa1f5ab30dd0c8adcc6128b99e188deee2e 100644 --- a/product/ERP5/Interface/Predicate.py +++ b/product/ERP5/Interface/Predicate.py @@ -45,11 +45,14 @@ class Predicate(Interface): implemented by subclasses. """ - def test(context): - """ - A Predicate can be tested on a given context + def test(context, tested_base_category_list=None): + """A Predicate can be tested on a given context. + + Parameters can passed in order to ignore some conditions: + - tested_base_category_list: this is the list of category that we do + want to test. For example, we might want to test only the + destination or the source of a predicate. """ - pass def asSQLExpression(): """ @@ -57,4 +60,4 @@ class Predicate(Interface): can be useful to create reporting trees based on the ZSQLCatalog """ - pass +