From d8d58ef8527e2dad55a161f8c6766049aade0ba2 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Tue, 22 Jun 2010 13:16:47 +0000 Subject: [PATCH] if tested_base_category_list is not passed in SolverTool.searchTargetSolverList(), no need to use [] instead of None, otherwise category matching does not work as expected. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36510 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Tool/SolverTool.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/product/ERP5/Tool/SolverTool.py b/product/ERP5/Tool/SolverTool.py index b0aad47f37..a72a8d0539 100644 --- a/product/ERP5/Tool/SolverTool.py +++ b/product/ERP5/Tool/SolverTool.py @@ -207,9 +207,6 @@ class SolverTool(TypeProvider): """ domain_tool = getToolByName(self.getPortalObject(), "portal_domains") - if tested_base_category_list is None: - tested_base_category_list = [] - solver_list = domain_tool.searchPredicateList( context=divergence_tester, portal_type='Solver Type', tested_base_category_list=tested_base_category_list, **kw) -- 2.30.9