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): ...@@ -345,7 +345,8 @@ class Category(Folder):
given list of base categories. Uses title_and_id as default method given list of base categories. Uses title_and_id as default method
""" """
return self.getCategoryChildItemList(recursive=recursive, return self.getCategoryChildItemList(recursive=recursive,
display_id='compact_title', base=base, **kw) display_id='compact_title',
base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildLogicalPathItemList') 'getCategoryChildLogicalPathItemList')
...@@ -354,9 +355,12 @@ class Category(Folder): ...@@ -354,9 +355,12 @@ class Category(Folder):
Returns a list of tuples by parsing recursively all categories in a Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses getLogicalPath as default method 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 Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses translation of getLogicalPath given list of base categories. Uses translation of getLogicalPath
...@@ -367,16 +371,20 @@ class Category(Folder): ...@@ -367,16 +371,20 @@ class Category(Folder):
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildCompactLogicalPathItemList') '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 Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses getLogicalPath as default method 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, security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildIndentedTitleItemList') '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 Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses getIndentedTitle as default method given list of base categories. Uses getIndentedTitle as default method
...@@ -391,7 +399,8 @@ class Category(Folder): ...@@ -391,7 +399,8 @@ class Category(Folder):
Returns a list of tuples by parsing recursively all categories in a Returns a list of tuples by parsing recursively all categories in a
given list of base categories. Uses getId as default method 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, security.declareProtected(Permissions.AccessContentsInformation,
...@@ -423,9 +432,11 @@ class Category(Folder): ...@@ -423,9 +432,11 @@ class Category(Folder):
return Renderer(base=base, **kw).render(value_list) return Renderer(base=base, **kw).render(value_list)
if not cache: 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') localizer = getToolByName(self, 'Localizer')
language = localizer.get_selected_language() language = localizer.get_selected_language()
m = CachingMethod(_renderCategoryChildItemList, m = CachingMethod(_renderCategoryChildItemList,
...@@ -439,12 +450,17 @@ class Category(Folder): ...@@ -439,12 +450,17 @@ class Category(Folder):
""" """
Alias for compatibility and accelation 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 # Alias for compatibility
security.declareProtected(Permissions.AccessContentsInformation, 'getBaseItemList') security.declareProtected(Permissions.AccessContentsInformation,
'getBaseItemList')
def getBaseItemList(self, base=0, prefix=''): 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, security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryRelativeUrl') 'getCategoryRelativeUrl')
...@@ -472,7 +488,8 @@ class Category(Folder): ...@@ -472,7 +488,8 @@ class Category(Folder):
# Alias for compatibility # Alias for compatibility
security.declareProtected(Permissions.AccessContentsInformation, 'getCategoryName') security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryName')
getCategoryName = getCategoryRelativeUrl getCategoryName = getCategoryRelativeUrl
# Predicate interface # 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