From 87e0fc1cf29a5de598b84b41a7cd2f0e7feb9b87 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Tue, 25 Sep 2007 15:22:15 +0000 Subject: [PATCH] Revert commit 16607, it breaks bootstrap. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16608 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Core/Folder.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/product/ERP5Type/Core/Folder.py b/product/ERP5Type/Core/Folder.py index 5756a1645c..61abe68139 100644 --- a/product/ERP5Type/Core/Folder.py +++ b/product/ERP5Type/Core/Folder.py @@ -375,7 +375,10 @@ class CMFBTreeFolderHandler(FolderHandler): return getattr(CMFBTreeFolder, id) def isApplicable(self, folder): - return '_tree' in getattr(folder, '__dict__', tuple()) + result = False + if getattr(folder, '_tree', None) is not None: + result = True + return result class CMFHBTreeFolderHandler(FolderHandler): @@ -386,7 +389,10 @@ class CMFHBTreeFolderHandler(FolderHandler): return getattr(CMFHBTreeFolder, id) def isApplicable(self, folder): - return '_htree' in getattr(folder, '__dict__', tuple()) + result = False + if getattr(folder, '_htree', None) is not None: + result = True + return result class OFSFolderHandler(FolderHandler): @@ -397,7 +403,10 @@ class OFSFolderHandler(FolderHandler): return getattr(OFSFolder, id) def isApplicable(self, folder): - return '_objects' in getattr(folder, '__dict__', tuple()) + result = False + if getattr(folder, '_objects', None) is not None: + result = True + return result global folder_handler_dict folder_handler_dict = {} -- 2.30.9