Commit f7b687e6 authored by Mayoro Diagne's avatar Mayoro Diagne

2008-09-12: mayoro

- reordering section of documentation for ODT

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23601 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 55028869
...@@ -157,6 +157,16 @@ for section in section_list:\n ...@@ -157,6 +157,16 @@ for section in section_list:\n
elif portal_skin == "ODT" and root_class_name == "ERP5SiteDocumentationHelper":\n elif portal_skin == "ODT" and root_class_name == "ERP5SiteDocumentationHelper":\n
for child_uri in uri_object.getSectionList():\n for child_uri in uri_object.getSectionList():\n
class_name = child_uri.getClassName()\n class_name = child_uri.getClassName()\n
child_uri_title = getattr(child_uri, \'title\',\'\')\n
if child_uri_title == \'\':\n
child_uri_title = child_uri\n
result.append(\n
ReportSection(\n
path=context.getPortalObject().portal_classes.getRelativeUrl(),\n
level=4,\n
title=child_uri_title,\n
form_id=\'\')\n
)\n
result += context.DocumentationHelper_getDocumentationSectionListParams(class_name, child_uri.uri_list)\n result += context.DocumentationHelper_getDocumentationSectionListParams(class_name, child_uri.uri_list)\n
return result\n return result\n
</string> </value> </string> </value>
...@@ -223,6 +233,8 @@ return result\n ...@@ -223,6 +233,8 @@ return result\n
<string>class_name</string> <string>class_name</string>
<string>_inplacevar_</string> <string>_inplacevar_</string>
<string>sub_child_uri</string> <string>sub_child_uri</string>
<string>getattr</string>
<string>child_uri_title</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -78,8 +78,8 @@ for uri in uri_list:\n ...@@ -78,8 +78,8 @@ for uri in uri_list:\n
sub_result.append(\n sub_result.append(\n
ReportSection(\n ReportSection(\n
path=context.getPortalObject().portal_classes.getRelativeUrl(),\n path=context.getPortalObject().portal_classes.getRelativeUrl(),\n
level=3,\n level=5,\n
title= getTitle(uri.split(\'.\')[-1]),\n title=getTitle(uri.split(\'.\')[-1]),\n
form_id=\'\')\n form_id=\'\')\n
)\n )\n
sub_result.append(\n sub_result.append(\n
...@@ -93,7 +93,7 @@ for uri in uri_list:\n ...@@ -93,7 +93,7 @@ for uri in uri_list:\n
sub_result.append(\n sub_result.append(\n
ReportSection(\n ReportSection(\n
path=context.getPortalObject().portal_classes.getRelativeUrl(),\n path=context.getPortalObject().portal_classes.getRelativeUrl(),\n
level=3,\n level=4,\n
method_id=\'getDocumentationHelper\',\n method_id=\'getDocumentationHelper\',\n
form_id=\'%s_view\' % class_name,\n form_id=\'%s_view\' % class_name,\n
param_list=[class_name,\n param_list=[class_name,\n
......
erp5_odt_style
\ No newline at end of file
77 81
\ No newline at end of file \ No newline at end of file
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