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):
"""
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')
def getRoleColumnList(self):
"""Return the list of pertinent columns for permissions on states."""
......
......@@ -45,6 +45,13 @@ class ERP5FormDocumentationHelper(DocumentationHelper):
"""
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')
def getEncoding(self):
"""
......
......@@ -45,6 +45,13 @@ class PageTemplateDocumentationHelper(DocumentationHelper):
"""
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')
def getSourceCode(self):
"""
......
......@@ -45,6 +45,13 @@ class ScriptPythonDocumentationHelper(DocumentationHelper):
"""
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')
def getParams(self):
"""
......
......@@ -69,6 +69,13 @@ class SkinFolderDocumentationHelper(DocumentationHelper):
"""
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')
def getMetaTypeList(self):
return sorted(set(obj.meta_type
......
......@@ -45,6 +45,14 @@ class SkinFolderItemDocumentationHelper(DocumentationHelper):
"""
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')
def getContentType(self):
"""
......
......@@ -45,6 +45,13 @@ class ZSQLMethodDocumentationHelper(DocumentationHelper):
"""
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')
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