Commit c2032aae authored by Sebastien Robin's avatar Sebastien Robin

corrected problems when a method is not in the filter_dict


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1325 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8431f6bf
...@@ -126,10 +126,12 @@ class CatalogMethodTemplateItem(ObjectTemplateItem): ...@@ -126,10 +126,12 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
self._is_uncatalog_method = method_id in portal_catalog.sql_uncatalog_object self._is_uncatalog_method = method_id in portal_catalog.sql_uncatalog_object
self._is_update_method = method_id in portal_catalog.sql_update_object self._is_update_method = method_id in portal_catalog.sql_update_object
self._is_clear_method = method_id in portal_catalog.sql_clear_catalog self._is_clear_method = method_id in portal_catalog.sql_clear_catalog
self._is_filtered = portal_catalog.filter_dict[method_id]['filtered'] self._is_filtered = 0
self._filter_expression = portal_catalog.filter_dict[method_id]['expression'] if portal_catalog.filter_dict.has_key(method_id):
self._filter_expression_instance = portal_catalog.filter_dict[method_id]['expression_instance'] self._is_filtered = portal_catalog.filter_dict[method_id]['filtered']
self._filter_type = portal_catalog.filter_dict[method_id]['type'] self._filter_expression = portal_catalog.filter_dict[method_id]['expression']
self._filter_expression_instance = portal_catalog.filter_dict[method_id]['expression_instance']
self._filter_type = portal_catalog.filter_dict[method_id]['type']
def install(self, local_configuration): def install(self, local_configuration):
ObjectTemplateItem.install(self, local_configuration) ObjectTemplateItem.install(self, local_configuration)
......
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