Commit 407edcae authored by Jérome Perrin's avatar Jérome Perrin

Add getCategoryChildCompactTranslatedTitleItemList method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17832 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dc13a708
......@@ -361,11 +361,22 @@ class Category(Folder):
def getCategoryChildCompactTitleItemList(self, recursive=1, base=0, **kw):
"""
Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses title_and_id as default method
given list of base categories. Uses compact_title as default method
"""
return self.getCategoryChildItemList(recursive=recursive,
display_id='compact_title',
base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildCompactTranslatedTitleItemList')
def getCategoryChildCompactTranslatedTitleItemList(self, recursive=1, base=0, **kw):
"""
Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses translated_compact_title as default method
"""
return self.getCategoryChildItemList(recursive=recursive,
display_id='translated_compact_title',
base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildLogicalPathItemList')
......
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