Commit 27dcbd57 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use the new format of DomainSelection, and make an acquisition wrapper with context.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11227 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5a07ff7b
No related merge requests found
...@@ -1381,12 +1381,14 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -1381,12 +1381,14 @@ class CategoryTool( UniqueObject, Folder, Base ):
raise CategoryError('getCategoryMemberValueList must know the base category') raise CategoryError('getCategoryMemberValueList must know the base category')
strict_membership = kw.get('strict_membership', kw.get('strict', 0)) strict_membership = kw.get('strict_membership', kw.get('strict', 0))
domain_dict = {base_category: ('portal_categories', context.getRelativeUrl())}
selection_domain = DomainSelection(domain_dict = domain_dict).__of__(context)
if strict_membership: if strict_membership:
catalog_search = self.portal_catalog(portal_type = portal_type, catalog_search = self.portal_catalog(portal_type = portal_type,
selection_report = DomainSelection(domain_dict = {base_category:context})) selection_report = selection_domain)
else: else:
catalog_search = self.portal_catalog(portal_type = portal_type, catalog_search = self.portal_catalog(portal_type = portal_type,
selection_domain = DomainSelection(domain_dict = {base_category:context})) selection_domain = selection_domain)
return catalog_search return catalog_search
......
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