Commit cf3371b3 authored by Vincent Pelletier's avatar Vincent Pelletier

CMFCategory.CategoryTool: Simplify getCategoryMemberItemList.

Also, stop passing ignored "spec" parameter.
parent 7e187cf0
...@@ -1656,12 +1656,12 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -1656,12 +1656,12 @@ class CategoryTool( UniqueObject, Folder, Base ):
objects belonging to child categories. objects belonging to child categories.
strict : a deprecated alias for strict_membership strict : a deprecated alias for strict_membership
""" """
k = {} return Renderer(**kw).render(self.getCategoryMemberValueList(
for v in ('portal_type', 'spec', 'strict', 'strict_membership'): context,
if v in kw: portal_type=kw.get('portal_type'),
k[v] = kw[v] strict_membership=kw.get('strict_membership'),
catalog_search = self.getCategoryMemberValueList(context, **k) strict=kw.get('strict'),
return Renderer(**kw).render(catalog_search) ))
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
'getCategoryMemberTitleItemList' ) 'getCategoryMemberTitleItemList' )
......
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