[Erp5-report] r11227 - /erp5/trunk/products/CMFCategory/CategoryTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 9 13:55:05 CET 2006
Author: yo
Date: Thu Nov 9 13:54:58 2006
New Revision: 11227
URL: http://svn.erp5.org?rev=11227&view=rev
Log:
Use the new format of DomainSelection, and make an acquisition wrapper with context.
Modified:
erp5/trunk/products/CMFCategory/CategoryTool.py
Modified: erp5/trunk/products/CMFCategory/CategoryTool.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFCategory/CategoryTool.py?rev=11227&r1=11226&r2=11227&view=diff
==============================================================================
--- erp5/trunk/products/CMFCategory/CategoryTool.py (original)
+++ erp5/trunk/products/CMFCategory/CategoryTool.py Thu Nov 9 13:54:58 2006
@@ -1381,12 +1381,14 @@
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
More information about the Erp5-report
mailing list