Commit 87e0fc1c authored by Vincent Pelletier's avatar Vincent Pelletier

Revert commit 16607, it breaks bootstrap.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16608 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 59b3273a
......@@ -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 = {}
......
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