From c2ee63f5925346c0cd806fbf5fdc229b71587efd Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Wed, 15 Feb 2006 10:52:53 +0000
Subject: [PATCH] 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
---
 product/ZSQLCatalog/SQLCatalog.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py
index 93c2d7973d..4559c2eee5 100755
--- a/product/ZSQLCatalog/SQLCatalog.py
+++ b/product/ZSQLCatalog/SQLCatalog.py
@@ -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())
-- 
2.30.9