Commit 49dc29dd authored by Sebastien Robin's avatar Sebastien Robin

added method getCategoryChildTitleOrIdItemList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2193 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d11c93a3
......@@ -216,6 +216,15 @@ class Category(Folder):
"""
return self.getCategoryChildItemList(recursive = recursive, display_id='title', base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildTitleOrIdItemList')
def getCategoryChildTitleOrIdItemList(self, recursive=1, base=0, **kw):
"""
Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses getTitle as default method
"""
return self.getCategoryChildItemList(recursive = recursive, display_id='title_or_id', base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildLogicalPathItemList')
def getCategoryChildLogicalPathItemList(self, recursive=1, base=0, **kw):
......
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