Commit 235a3ca8 authored by Jérome Perrin's avatar Jérome Perrin

passthrough **kw to support sorting and filtering


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38303 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 21c5fb50
......@@ -353,7 +353,8 @@ class Category(Folder):
# List names recursively
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildRelativeUrlList')
def getCategoryChildRelativeUrlList(self, base='', recursive=1, checked_permission=None):
def getCategoryChildRelativeUrlList(self, base='', recursive=1,
checked_permission=None, **kw):
"""
List the path of this category and all its subcategories.
......@@ -368,7 +369,8 @@ class Category(Folder):
base = self.getBaseCategoryId() + '/' # Make sure we get a meaningful base
url_list = []
for value in self.getCategoryChildValueList(recursive=recursive,
checked_permission=checked_permission):
checked_permission=checked_permission,
**kw):
url_list.append(base + value.getRelativeUrl())
return url_list
......
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