Commit 9c8b6276 authored by Jérome Perrin's avatar Jérome Perrin

fix some long lines


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15325 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 02ab534b
......@@ -345,7 +345,8 @@ class Category(Folder):
given list of base categories. Uses title_and_id as default method
"""
return self.getCategoryChildItemList(recursive=recursive,
display_id='compact_title', base=base, **kw)
display_id='compact_title',
base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildLogicalPathItemList')
......@@ -354,9 +355,12 @@ class Category(Folder):
Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses getLogicalPath as default method
"""
return self.getCategoryChildItemList(recursive=recursive, display_id='logical_path', base=base, **kw)
return self.getCategoryChildItemList(recursive=recursive,
display_id='logical_path',
base=base, **kw)
def getCategoryChildTranslatedLogicalPathItemList(self, recursive=1, base=0, **kw):
def getCategoryChildTranslatedLogicalPathItemList(self,
recursive=1, base=0, **kw):
"""
Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses translation of getLogicalPath
......@@ -367,16 +371,20 @@ class Category(Folder):
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildCompactLogicalPathItemList')
def getCategoryChildCompactLogicalPathItemList(self, recursive=1, base=0, **kw):
def getCategoryChildCompactLogicalPathItemList(self,
recursive=1, base=0, **kw):
"""
Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses getLogicalPath as default method
"""
return self.getCategoryChildItemList(recursive=recursive, display_id='compact_logical_path', base=base, **kw)
return self.getCategoryChildItemList(recursive=recursive,
display_id='compact_logical_path',
base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildIndentedTitleItemList')
def getCategoryChildIndentedTitleItemList(self, recursive=1, base=0, **kw):
def getCategoryChildIndentedTitleItemList(self,
recursive=1, base=0, **kw):
"""
Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses getIndentedTitle as default method
......@@ -391,7 +399,8 @@ class Category(Folder):
Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses getId as default method
"""
return self.getCategoryChildItemList(recursive=recursive, display_id='id', base=base, **kw)
return self.getCategoryChildItemList(recursive=recursive,
display_id='id', base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation,
......@@ -423,9 +432,11 @@ class Category(Folder):
return Renderer(base=base, **kw).render(value_list)
if not cache:
return _renderCategoryChildItemList(recursive=recursive, base=base, **kw)
return _renderCategoryChildItemList(
recursive=recursive, base=base, **kw)
# Some methods are language dependent so we include the language in the key
# Some methods are language dependent so we include the language in the
# key
localizer = getToolByName(self, 'Localizer')
language = localizer.get_selected_language()
m = CachingMethod(_renderCategoryChildItemList,
......@@ -439,12 +450,17 @@ class Category(Folder):
"""
Alias for compatibility and accelation
"""
return self.getCategoryChildItemList(base=0, display_none_category=1, recursive=1)
return self.getCategoryChildItemList(base=0,
display_none_category=1,
recursive=1)
# Alias for compatibility
security.declareProtected(Permissions.AccessContentsInformation, 'getBaseItemList')
security.declareProtected(Permissions.AccessContentsInformation,
'getBaseItemList')
def getBaseItemList(self, base=0, prefix=''):
return self.getCategoryChildItemList(base=base, display_none_category=0, recursive=1)
return self.getCategoryChildItemList(base=base,
display_none_category=0,
recursive=1)
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryRelativeUrl')
......@@ -472,7 +488,8 @@ class Category(Folder):
# Alias for compatibility
security.declareProtected(Permissions.AccessContentsInformation, 'getCategoryName')
security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryName')
getCategoryName = getCategoryRelativeUrl
# Predicate interface
......
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