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

don't compare boolean with 0


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25303 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 54072a30
......@@ -196,8 +196,8 @@ class DomainTool(BaseTool):
# LOG('searchPredicateList, result_list before test', 0,
# [x.getObject() for x in sql_result_list])
for predicate in [x.getObject() for x in sql_result_list]:
if test==0 or predicate.test(
context,
if (not test) or predicate.test(
context,
tested_base_category_list=tested_base_category_list):
result_list.append(predicate)
# LOG('searchPredicateList, result_list before sort', 0, result_list)
......
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