Commit 090af22b authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added Section class to API

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15924 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 046996ae
......@@ -6,6 +6,15 @@ from Globals import InitializeClass
from Products.ERP5Type.Accessor.Accessor import Accessor
from Products.ERP5Type.Base import WorkflowMethod
class DocumentationSection(Implicit):
def __init__(self, id, title, class_name, uri):
self.id = id
self.title = title
self.class_name = class_name
self.uri uri
class DocumentationHelper(Implicit):
"""
Example URIs
......@@ -97,18 +106,18 @@ class PortalTypeInstanceDocumentationHelper(DocumentationHelper):
Returns a list of documentation sections
"""
return [
{
'id' : 'instance_property',
'title' : 'Instance Properties',
'class' : 'InstancePropertyDocumentationHelper',
'uri' : self.getClassPropertyURIList(),
}
{
'id' : 'accessor',
'title' : 'Accessors',
'class' : 'AccessorDocumentationHelper',
'uri' : self.getClassPropertyURIList(),
}
DocumentationSection(
id='instance_property',
title='Instance Properties',
class_name='InstancePropertyDocumentationHelper',
uri=self.getClassPropertyURIList(),
),
DocumentationSection(
id='accessor',
title='Accessors',
class_name='AccessorDocumentationHelper',
uri=self.getClassPropertyURIList(),
),
]
# Specific methods
......
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