[Erp5-report] r15924 - /erp5/trunk/products/ERP5Type/DocumentationHelper.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Aug 29 18:19:37 CEST 2007
Author: jp
Date: Wed Aug 29 18:19:36 2007
New Revision: 15924
URL: http://svn.erp5.org?rev=15924&view=rev
Log:
Added Section class to API
Modified:
erp5/trunk/products/ERP5Type/DocumentationHelper.py
Modified: erp5/trunk/products/ERP5Type/DocumentationHelper.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/DocumentationHelper.py?rev=15924&r1=15923&r2=15924&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/DocumentationHelper.py (original)
+++ erp5/trunk/products/ERP5Type/DocumentationHelper.py Wed Aug 29 18:19:36 2007
@@ -5,6 +5,15 @@
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):
"""
@@ -97,18 +106,18 @@
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
More information about the Erp5-report
mailing list