From 97d7ff21e693d1fe872e2d6cdf221a41d907ebcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 26 Jul 2006 09:35:27 +0000 Subject: [PATCH] acquisition_object_id should not be acquired, we only check if the context object have a subobject with id acquisition_object_id git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8792 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/CMFCategory/CategoryTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/CMFCategory/CategoryTool.py b/product/CMFCategory/CategoryTool.py index 05cf3f15c6..c70a832f05 100644 --- a/product/CMFCategory/CategoryTool.py +++ b/product/CMFCategory/CategoryTool.py @@ -879,7 +879,7 @@ class CategoryTool( UniqueObject, Folder, Base ): return result # First we look at local ids for object_id in base_category_value.getAcquisitionObjectIdList(): - my_acquisition_object = getattr(context,object_id,None) + my_acquisition_object = context._getOb(object_id, None) if my_acquisition_object is not None: #my_acquisition_object_path = my_acquisition_object.getPhysicalPath() #if my_acquisition_object_path in acquired_object_dict: -- 2.30.9