From 73151814122c88e1287aa32cece84a6911960bde Mon Sep 17 00:00:00 2001 From: Vo Minh Thu Date: Tue, 26 Jul 2011 19:28:53 +0200 Subject: [PATCH] [IMP] expression: added a small comment. bzr revid: vmt@openerp.com-20110726172853-4yoxl1bdnd1sopvf --- openerp/osv/expression.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openerp/osv/expression.py b/openerp/osv/expression.py index 5c20d92713a..f3be51c7b50 100644 --- a/openerp/osv/expression.py +++ b/openerp/osv/expression.py @@ -60,7 +60,8 @@ def normalize(domain): def combine(operator, unit, zero, domains): """Returns a new domain expression where all domain components from ``domains`` - have been added together using the binary operator ``operator``. + have been added together using the binary operator ``operator``. The given + domains must be normalized. :param unit: the identity element of the domains "set" with regard to the operation performed by ``operator``, i.e the domain component ``i`` which, when @@ -72,6 +73,7 @@ def combine(operator, unit, zero, domains): combined with any domain ``x`` via ``operator``, yields ``z``. E.g. [(1,'=',1)] is the typical zero for OR_OPERATOR: as soon as you see it in a domain component the resulting domain is the zero. + :param domains: a list of normalized domains. """ result = [] count = 0