Commit 589dd2eb authored by Nicolas Delaby's avatar Nicolas Delaby

Add New displaying Method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19046 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eb15da86
...@@ -211,6 +211,14 @@ class Category(Folder): ...@@ -211,6 +211,14 @@ class Category(Folder):
logical_title_list.append(logical_title) logical_title_list.append(logical_title)
return ''.join(logical_title_list) return ''.join(logical_title_list)
security.declareProtected(Permissions.AccessContentsInformation,
'getIndentedShortTitle')
def getIndentedShortTitle(self):
"""
Returns short_title or id, indented from base_category.
"""
return self.getIndentedTitle(item_method='getShortTitle')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getIndentedTitleAndId') 'getIndentedTitleAndId')
def getIndentedTitleAndId(self, item_method='getTitleAndId'): def getIndentedTitleAndId(self, item_method='getTitleAndId'):
......
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