Commit 756beabf authored by Aurel's avatar Aurel

as OOBTree are not container in zope 2.7, consider them as dict to be compatible


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17180 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6e0dade
...@@ -244,7 +244,7 @@ class HBTreeFolder2Base (Persistent): ...@@ -244,7 +244,7 @@ class HBTreeFolder2Base (Persistent):
id_list = self.hashId(id) id_list = self.hashId(id)
for idx in xrange(len(id_list) - 1): for idx in xrange(len(id_list) - 1):
sub_id = id_list[idx] sub_id = id_list[idx]
if sub_id not in htree: if not htree.has_key(sub_id):
# Create a new level # Create a new level
htree[sub_id] = OOBTree() htree[sub_id] = OOBTree()
if isinstance(sub_id, (int, long)): if isinstance(sub_id, (int, long)):
......
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