diff --git a/product/CMFCategory/Category.py b/product/CMFCategory/Category.py index 0a20167de705c4dbe1c21fc6ac89f63de6fd9ff0..ddc84d20231446dddf9f1c3b846022c7e71d90e1 100644 --- a/product/CMFCategory/Category.py +++ b/product/CMFCategory/Category.py @@ -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')