Commit e953f2df authored by Jérome Perrin's avatar Jérome Perrin

The API changed. test method now have a "tested_base_category_list" parameter.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18680 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf53c030
...@@ -45,11 +45,14 @@ class Predicate(Interface): ...@@ -45,11 +45,14 @@ class Predicate(Interface):
implemented by subclasses. implemented by subclasses.
""" """
def test(context): def test(context, tested_base_category_list=None):
""" """A Predicate can be tested on a given context.
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(): def asSQLExpression():
""" """
...@@ -57,4 +60,4 @@ class Predicate(Interface): ...@@ -57,4 +60,4 @@ class Predicate(Interface):
can be useful to create reporting trees based on the can be useful to create reporting trees based on the
ZSQLCatalog ZSQLCatalog
""" """
pass
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