Commit c3e53c63 authored by Yoshinori Okuji's avatar Yoshinori Okuji

bug fixes


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@838 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fa56bb12
...@@ -837,19 +837,19 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -837,19 +837,19 @@ class CategoryTool( UniqueObject, Folder, Base ):
# my_acquisition_object_list = [] # my_acquisition_object_list = []
else: else:
LOG('getAcquiredCategoryMembershipList', 0, 'my_acquisition_object = %s, acquired_object_dict = %s' % (str(context), str(acquired_object_dict))) LOG('getAcquiredCategoryMembershipList', 0, 'my_acquisition_object = %s, acquired_object_dict = %s' % (str(context), str(acquired_object_dict)))
my_acquisition_list = self.getSingleAcquiredCategoryMembershipList(context, my_acquisition_list = self.getSingleCategoryAcquiredMembershipList(context,
my_base_category, my_base_category,
portal_type=tuple(base_category_value.getAcquisitionPortalTypeList(())), portal_type=tuple(base_category_value.getAcquisitionPortalTypeList(())),
acquired_object_dict=acquired_object_dict) acquired_object_dict=acquired_object_dict)
my_acquisition_object_list = [] my_acquisition_object_list = []
for c in my_acquisition_object_list: for c in my_acquisition_list:
o = self.resolveCategory(c) o = self.resolveCategory(c)
if o is not None: if o is not None:
my_acquisition_object_list.append(o) my_acquisition_object_list.append(o)
#my_acquisition_object_list = context.getValueList(my_base_category, #my_acquisition_object_list = context.getValueList(my_base_category,
# portal_type=tuple(base_category_value.getAcquisitionPortalTypeList(()))) # portal_type=tuple(base_category_value.getAcquisitionPortalTypeList(())))
#LOG("Get Acquired PT",0,str(base_category.getAcquisitionPortalTypeList(()))) LOG("Get Acquired PT",0,str(base_category_value.getAcquisitionPortalTypeList(())))
#LOG("Object List ",0,str(my_acquisition_object_list)) LOG("Object List ",0,str(my_acquisition_object_list))
original_result = result original_result = result
result = list(result) # make a copy result = list(result) # make a copy
for my_acquisition_object in my_acquisition_object_list: for my_acquisition_object in 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