Commit b78cae4d authored by Aurel's avatar Aurel

gettatr must raise on method name if _tree is None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17629 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 46874bfd
......@@ -839,6 +839,8 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn,
if self._folder_handler == HBTREE_HANDLER:
return CMFHBTreeFolder.__getattr__(self, name)
else:
if self._tree is None:
raise AttributeError, name
return CMFBTreeFolder.__getattr__(self, name)
def __len__(self):
......
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