From 27dcbd57a5df3456520e916a2f17f34180bb7bf6 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Thu, 9 Nov 2006 12:54:58 +0000 Subject: [PATCH] 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 --- product/CMFCategory/CategoryTool.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/product/CMFCategory/CategoryTool.py b/product/CMFCategory/CategoryTool.py index 3ba5cbc5c2..b993510511 100644 --- a/product/CMFCategory/CategoryTool.py +++ b/product/CMFCategory/CategoryTool.py @@ -1381,12 +1381,14 @@ class CategoryTool( UniqueObject, Folder, Base ): raise CategoryError('getCategoryMemberValueList must know the base category') 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: catalog_search = self.portal_catalog(portal_type = portal_type, - selection_report = DomainSelection(domain_dict = {base_category:context})) + selection_report = selection_domain) else: catalog_search = self.portal_catalog(portal_type = portal_type, - selection_domain = DomainSelection(domain_dict = {base_category:context})) + selection_domain = selection_domain) return catalog_search -- 2.30.9