Commit 6658bd65 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Cosmectics.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13058 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d30536b3
...@@ -271,7 +271,7 @@ class Category(Folder): ...@@ -271,7 +271,7 @@ 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 getTitle as default method given list of base categories. Uses getTitle as default method
""" """
return self.getCategoryChildItemList(recursive = recursive, display_id='title', base=base, **kw) return self.getCategoryChildItemList(recursive=recursive, display_id='title', base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getCategoryChildTranslatedTitleItemList') 'getCategoryChildTranslatedTitleItemList')
...@@ -280,7 +280,7 @@ class Category(Folder): ...@@ -280,7 +280,7 @@ 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 getTitle as default method given list of base categories. Uses getTitle as default method
""" """
return self.getCategoryChildItemList(recursive = recursive, return self.getCategoryChildItemList(recursive=recursive,
display_id='translated_title', base=base, **kw) display_id='translated_title', base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
...@@ -309,7 +309,7 @@ class Category(Folder): ...@@ -309,7 +309,7 @@ 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):
""" """
...@@ -317,7 +317,7 @@ class Category(Folder): ...@@ -317,7 +317,7 @@ class Category(Folder):
given list of base categories. Uses translation of getLogicalPath given list of base categories. Uses translation of getLogicalPath
as default method as default method
""" """
return self.getCategoryChildItemList(recursive = recursive, return self.getCategoryChildItemList(recursive=recursive,
display_id='translated_logical_path', base=base, **kw) display_id='translated_logical_path', base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
...@@ -327,7 +327,7 @@ class Category(Folder): ...@@ -327,7 +327,7 @@ 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 getIndentedTitle as default method given list of base categories. Uses getIndentedTitle as default method
""" """
return self.getCategoryChildItemList(recursive = recursive, return self.getCategoryChildItemList(recursive=recursive,
display_id='indented_title', base=base, **kw) display_id='indented_title', base=base, **kw)
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
...@@ -337,7 +337,7 @@ class Category(Folder): ...@@ -337,7 +337,7 @@ 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,
...@@ -369,12 +369,12 @@ class Category(Folder): ...@@ -369,12 +369,12 @@ 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')
......
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