[Erp5-report] r18680 - /erp5/trunk/products/ERP5/Interface/Predicate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 14 11:56:28 CET 2008
Author: jerome
Date: Mon Jan 14 11:56:28 2008
New Revision: 18680
URL: http://svn.erp5.org?rev=18680&view=rev
Log:
The API changed. test method now have a "tested_base_category_list" parameter.
Modified:
erp5/trunk/products/ERP5/Interface/Predicate.py
Modified: erp5/trunk/products/ERP5/Interface/Predicate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Interface/Predicate.py?rev=18680&r1=18679&r2=18680&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Interface/Predicate.py (original)
+++ erp5/trunk/products/ERP5/Interface/Predicate.py Mon Jan 14 11:56:28 2008
@@ -45,11 +45,14 @@
implemented by subclasses.
"""
- def test(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.
"""
- A Predicate can be tested on a given context
- """
- pass
def asSQLExpression():
"""
@@ -57,4 +60,4 @@
can be useful to create reporting trees based on the
ZSQLCatalog
"""
- pass
+
More information about the Erp5-report
mailing list