Commit a0bf25d5 authored by Mayoro Diagne's avatar Mayoro Diagne

overriding the method getTitle

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31693 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b87cf524
...@@ -92,6 +92,13 @@ class DCWorkflowDocumentationHelper(DocumentationHelper): ...@@ -92,6 +92,13 @@ class DCWorkflowDocumentationHelper(DocumentationHelper):
""" """
return "DC Workflow" return "DC Workflow"
security.declareProtected(Permissions.AccessContentsInformation, 'getTitle')
def getTitle(self):
"""
Returns the title of the skin folder
"""
return getattr(self.getDocumentedObject(), 'title', '')
security.declareProtected(Permissions.AccessContentsInformation, 'getRoleColumnList') security.declareProtected(Permissions.AccessContentsInformation, 'getRoleColumnList')
def getRoleColumnList(self): def getRoleColumnList(self):
"""Return the list of pertinent columns for permissions on states.""" """Return the list of pertinent columns for permissions on states."""
......
...@@ -45,6 +45,13 @@ class ERP5FormDocumentationHelper(DocumentationHelper): ...@@ -45,6 +45,13 @@ class ERP5FormDocumentationHelper(DocumentationHelper):
""" """
return "ERP5 Form" return "ERP5 Form"
security.declareProtected(Permissions.AccessContentsInformation, 'getTitle')
def getTitle(self):
"""
Returns the title of the documentation helper
"""
return getattr(self.getDocumentedObject(), 'title', '')
security.declareProtected(Permissions.AccessContentsInformation, 'getEncoding') security.declareProtected(Permissions.AccessContentsInformation, 'getEncoding')
def getEncoding(self): def getEncoding(self):
""" """
......
...@@ -45,6 +45,13 @@ class PageTemplateDocumentationHelper(DocumentationHelper): ...@@ -45,6 +45,13 @@ class PageTemplateDocumentationHelper(DocumentationHelper):
""" """
return "Page Template" return "Page Template"
security.declareProtected(Permissions.AccessContentsInformation, 'getTitle')
def getTitle(self):
"""
Returns the title of the documentation helper
"""
return getattr(self.getDocumentedObject(), 'title', '')
security.declareProtected(Permissions.AccessContentsInformation, 'getSourceCode') security.declareProtected(Permissions.AccessContentsInformation, 'getSourceCode')
def getSourceCode(self): def getSourceCode(self):
""" """
......
...@@ -45,6 +45,13 @@ class ScriptPythonDocumentationHelper(DocumentationHelper): ...@@ -45,6 +45,13 @@ class ScriptPythonDocumentationHelper(DocumentationHelper):
""" """
return "Script Python" return "Script Python"
security.declareProtected(Permissions.AccessContentsInformation, 'getTitle')
def getTitle(self):
"""
Returns the title of the documentation helper
"""
return getattr(self.getDocumentedObject(), 'title', '')
security.declareProtected(Permissions.AccessContentsInformation, 'getParams') security.declareProtected(Permissions.AccessContentsInformation, 'getParams')
def getParams(self): def getParams(self):
""" """
......
...@@ -69,6 +69,13 @@ class SkinFolderDocumentationHelper(DocumentationHelper): ...@@ -69,6 +69,13 @@ class SkinFolderDocumentationHelper(DocumentationHelper):
""" """
return "Skin Folder" return "Skin Folder"
security.declareProtected(Permissions.AccessContentsInformation, 'getTitle')
def getTitle(self):
"""
Returns the title of the skin folder
"""
return getattr(self.getDocumentedObject(), 'title', '')
security.declareProtected(Permissions.AccessContentsInformation, 'getMetaTypeList') security.declareProtected(Permissions.AccessContentsInformation, 'getMetaTypeList')
def getMetaTypeList(self): def getMetaTypeList(self):
return sorted(set(obj.meta_type return sorted(set(obj.meta_type
......
...@@ -45,6 +45,14 @@ class SkinFolderItemDocumentationHelper(DocumentationHelper): ...@@ -45,6 +45,14 @@ class SkinFolderItemDocumentationHelper(DocumentationHelper):
""" """
return getattr(self.getDocumentedObject(), "meta_type") return getattr(self.getDocumentedObject(), "meta_type")
security.declareProtected(Permissions.AccessContentsInformation, 'getTitle')
def getTitle(self):
"""
Returns the title of the documentation helper
"""
return getattr(self.getDocumentedObject(), 'title', '')
security.declareProtected(Permissions.AccessContentsInformation, 'getContentType') security.declareProtected(Permissions.AccessContentsInformation, 'getContentType')
def getContentType(self): def getContentType(self):
""" """
......
...@@ -45,6 +45,13 @@ class ZSQLMethodDocumentationHelper(DocumentationHelper): ...@@ -45,6 +45,13 @@ class ZSQLMethodDocumentationHelper(DocumentationHelper):
""" """
return "Z SQL Method" return "Z SQL Method"
security.declareProtected(Permissions.AccessContentsInformation, 'getTitle')
def getTitle(self):
"""
Returns the title of the documentation helper
"""
return getattr(self.getDocumentedObject(), 'title', '')
security.declareProtected(Permissions.AccessContentsInformation, 'getSource') security.declareProtected(Permissions.AccessContentsInformation, 'getSource')
def getSource(self): def getSource(self):
""" """
......
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