Commit 9d4713cf authored by Jean-Paul Smets's avatar Jean-Paul Smets

added base=0 default value


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1314 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 72166490
...@@ -199,26 +199,26 @@ class Category(Folder): ...@@ -199,26 +199,26 @@ class Category(Folder):
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildTitleItemList') 'getCategoryChildTitleItemList')
def getCategoryChildTitleItemList(self, recursive=1, **kw): def getCategoryChildTitleItemList(self, recursive=1, base=0, **kw):
""" """
Returns a list of tuples by parsing recursively all categories in a Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses getTitle as default method given list of base categories. Uses getTitle as default method
""" """
return self.getCategoryChildItemList(recursive = recursive, display_id='getTitle', **kw) return self.getCategoryChildItemList(recursive = recursive, display_id='getTitle', base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildIdItemList') 'getCategoryChildIdItemList')
def getCategoryChildIdItemList(self, recursive=1, **kw): def getCategoryChildIdItemList(self, recursive=1, base=0, **kw):
""" """
Returns a list of tuples by parsing recursively all categories in a Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses getId as default method given list of base categories. Uses getId as default method
""" """
return self.getCategoryChildItemList(recursive = recursive, display_id='getId', **kw) return self.getCategoryChildItemList(recursive = recursive, display_id='getId', base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildItemList') 'getCategoryChildItemList')
def getCategoryChildItemList(self, recursive=1, **kw): def getCategoryChildItemList(self, recursive=1, base=0, **kw):
""" """
Returns a list of tuples by parsing recursively all categories in a Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Each tuple contains:: given list of base categories. Each tuple contains::
...@@ -238,7 +238,7 @@ class Category(Folder): ...@@ -238,7 +238,7 @@ class Category(Folder):
""" """
LOG('getCategoryChildItemList', 0, 'kw = %s, recursive = %s' % (str(kw), str(recursive))) LOG('getCategoryChildItemList', 0, 'kw = %s, recursive = %s' % (str(kw), str(recursive)))
value_list = self.getCategoryChildValueList(recursive=recursive) value_list = self.getCategoryChildValueList(recursive=recursive)
return Renderer(**kw).render(value_list) return Renderer(base=base, **kw).render(value_list)
# Alias for compatibility # Alias for compatibility
security.declareProtected(Permissions.View, 'getFormItemList') security.declareProtected(Permissions.View, 'getFormItemList')
......
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