Commit c2ee63f5 authored by Sebastien Robin's avatar Sebastien Robin

test if sql_catalog_object exist in getFilterableMethodList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5699 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6236c4bd
No related merge requests found
......@@ -1842,8 +1842,10 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
"""
method_dict = {}
if withCMF:
methods = self.sql_catalog_object + self.sql_uncatalog_object \
+ self.sql_update_object + self.sql_catalog_object_list
methods = getattr(self,'sql_catalog_object',()) + \
getattr(self,'sql_uncatalog_object',()) + \
getattr(self,'sql_update_object',()) + \
getattr(self,'sql_catalog_object_list',())
for method_id in methods:
method_dict[method_id] = 1
method_list = map(lambda method_id: getattr(self, method_id, None), method_dict.keys())
......
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