From ef770b7b956808aec4deeae7a20ad40b11e1d87a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 23 Oct 2007 09:19:18 +0000 Subject: [PATCH] if isMethodFiltered(method_name) returns true, it implies that filter_dict.has_key(method_name), not need to do the check twice git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17111 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ZSQLCatalog/SQLCatalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py index dce1fe997c..c5cfb87291 100644 --- a/product/ZSQLCatalog/SQLCatalog.py +++ b/product/ZSQLCatalog/SQLCatalog.py @@ -1613,7 +1613,7 @@ class Catalog( Folder, method_kw_dict = {} for method_name in method_id_list: kw = {} - if self.isMethodFiltered(method_name) and self.filter_dict.has_key(method_name): + if self.isMethodFiltered(method_name): catalogged_object_list = [] type_list = self.filter_dict[method_name]['type'] expression = self.filter_dict[method_name]['expression_instance'] -- 2.30.9