Commit f9d4960f authored by Kevin Deldycke's avatar Kevin Deldycke

Add backward compatibility


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5818 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 625642c2
......@@ -1348,8 +1348,11 @@ class CategoryTool( UniqueObject, Folder, Base ):
This returns a catalog_search resource with can then be used by getCategoryMemberItemList
"""
from Products.ERP5Form.Selection import DomainSelection
if base_category is None:
raise CategoryError('getCategoryMemberValueList must know the base category')
if base_category is None:
if context.getPortalType() == "Base Category":
base_category = context.getBaseCategoryId()
else:
raise CategoryError('getCategoryMemberValueList must know the base category')
strict_membership = kw.get('strict_membership', kw.get('strict', 0))
catalog_search = self.portal_catalog(portal_type = portal_type,
# TODO: make it work in catalog tool
......
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