Commit 262210ad authored by Yoshinori Okuji's avatar Yoshinori Okuji

More efficient check.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2974 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent add3d05a
...@@ -514,7 +514,7 @@ class CatalogMethodTemplateItem(ObjectTemplateItem): ...@@ -514,7 +514,7 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
if method_id in sql_clear_catalog: if method_id in sql_clear_catalog:
sql_clear_catalog.remove(method_id) sql_clear_catalog.remove(method_id)
if method_id in catalog.filter_dict.keys(): if catalog.filter_dict.has_key(method_id):
del catalog.filter_dict[method_id] del catalog.filter_dict[method_id]
catalog.sql_catalog_object = tuple(sql_catalog_object) catalog.sql_catalog_object = tuple(sql_catalog_object)
......
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