From 756beabf3428ea3b42363e08a48a3d8924f0000b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Thu, 25 Oct 2007 08:36:02 +0000 Subject: [PATCH] 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 --- product/HBTreeFolder2/HBTreeFolder2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/HBTreeFolder2/HBTreeFolder2.py b/product/HBTreeFolder2/HBTreeFolder2.py index f8b4206a47..0545029bde 100644 --- a/product/HBTreeFolder2/HBTreeFolder2.py +++ b/product/HBTreeFolder2/HBTreeFolder2.py @@ -244,7 +244,7 @@ class HBTreeFolder2Base (Persistent): id_list = self.hashId(id) for idx in xrange(len(id_list) - 1): sub_id = id_list[idx] - if sub_id not in htree: + if not htree.has_key(sub_id): # Create a new level htree[sub_id] = OOBTree() if isinstance(sub_id, (int, long)): -- 2.30.9