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

if isMethodFiltered(method_name) returns true, it implies that...

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
parent 6e8d1d1c
No related merge requests found
......@@ -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']
......
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