Commit 32903ff1 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Fix a typo.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@195 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ed50054d
...@@ -1036,11 +1036,11 @@ class CategoryTool( UniqueObject, Folder, Base ): ...@@ -1036,11 +1036,11 @@ class CategoryTool( UniqueObject, Folder, Base ):
This returns a list of items belonging to a category This returns a list of items belonging to a category
""" """
args = {} k = {}
for v in ('portal_type', 'spec'): for v in ('portal_type', 'spec'):
if v in kw: if v in kw:
args[v] = kw[v] k[v] = kw[v]
catalog_search = self.getCategoryMemberValueList(context, *args) catalog_search = self.getCategoryMemberValueList(context, **k)
#LOG('getCategoryMemberItemList', 0, repr(kw)) #LOG('getCategoryMemberItemList', 0, repr(kw))
return Renderer(**kw).render(context, catalog_search) return Renderer(**kw).render(context, catalog_search)
......
...@@ -190,7 +190,7 @@ class Renderer(Filter): ...@@ -190,7 +190,7 @@ class Renderer(Filter):
else: else:
# If the base category of this category does not match the guessed base category, # If the base category of this category does not match the guessed base category,
# merely ignore this category. # merely ignore this category.
if not hasattr('getBaseCategoryId'): if not hasattr(value, 'getBaseCategoryId'):
continue continue
if value.getBaseCategoryId() != guessed_base_category: if value.getBaseCategoryId() != guessed_base_category:
continue continue
......
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