From 7fcf0d19c9e75ad9c1d570f0118ca9d1879a38fd Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Mon, 19 Nov 2007 16:57:06 +0000
Subject: [PATCH] Fix wrong revision 17666. There shouldn't be acquisition when
 getAcquisitionPortalTypeList returns an empty list.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17688 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/CMFCategory/CategoryTool.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/CMFCategory/CategoryTool.py b/product/CMFCategory/CategoryTool.py
index 4183d4c618..bfb0b9f08f 100644
--- a/product/CMFCategory/CategoryTool.py
+++ b/product/CMFCategory/CategoryTool.py
@@ -971,7 +971,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
         acquisition_base_category_list = base_category_value.getAcquisitionBaseCategoryList()
         alt_base_category_list = base_category_value.getFallbackBaseCategoryList()
         all_acquisition_base_category_list = acquisition_base_category_list + alt_base_category_list
-        acquisition_pt = base_category_value.getAcquisitionPortalTypeList('python: []')
+        acquisition_pt = base_category_value.getAcquisitionPortalTypeList(None)
         for my_base_category in acquisition_base_category_list:
           # We implement here special keywords
           if my_base_category == 'parent':
@@ -984,7 +984,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
               #LOG("Parent Object List ",0,str(acquisition_pt))
               #my_acquisition_object_path = parent.getPhysicalPath()
               #if my_acquisition_object_path in acquired_object_dict:
-              if acquisition_pt == [] or parent.portal_type in acquisition_pt:
+              if acquisition_pt is None or parent.portal_type in acquisition_pt:
                 my_acquisition_object_list = [parent]
               else:
                 my_acquisition_object_list = []
-- 
2.30.9