Commit 379207a8 authored by Romain Courteaud's avatar Romain Courteaud

A TALES expression is expected as default value of

getAcquisitionPortalTypeList.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17666 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c8f10b4e
......@@ -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(())
acquisition_pt = base_category_value.getAcquisitionPortalTypeList('python: []')
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 is () or parent.portal_type in acquisition_pt:
if acquisition_pt == [] or parent.portal_type in acquisition_pt:
my_acquisition_object_list = [parent]
else:
my_acquisition_object_list = []
......
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