Commit 371470b5 authored by Mayoro Diagne's avatar Mayoro Diagne

2008-09-26: mayoro

- renaming some variables to avoid conflicts in DocumentationHelper_getDocumentationSectionList wich distroy the documentation when selecting more than 1 business template to document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23834 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3127f835
......@@ -183,11 +183,11 @@ for section in section_list:\n
if root_class_name == "ERP5SiteDocumentationHelper" and class_name==\'DCWorkflowDocumentationHelper\':\n
for sub_child_uri in child_uri.uri_list:\n
sub_child_object = context.getDocumentationHelper(class_name, sub_child_uri)\n
for section in sub_child_object.getSectionList(): \n
if section.class_name == \'DCWorkflowScriptDocumentationHelper\':\n
class_name = section.class_name\n
for sektion in sub_child_object.getSectionList(): \n
if sektion.class_name == \'DCWorkflowScriptDocumentationHelper\':\n
class_name = sektion.class_name\n
results=context.DocumentationHelper_getDocumentationSectionListParams(class_name,\n
section.uri_list, "%s:" % sub_child_object.getId())\n
sektion.uri_list, "%s:" % sub_child_object.getId())\n
result+=results[0]\n
class_methods_list+=results[1]\n
property_sheets_list+=results[2]\n
......@@ -241,11 +241,11 @@ if portal_skin is not None and portal_skin=="ODT":\n
class_name = \'PortalTypePropertySheetDocumentationHelper\'\n
propertysheets = propertysheet.values()\n
propertysheets.sort(compareFileName)\n
for uri in propertysheets:\n
for urii in propertysheets:\n
result.append(\n
ReportSection(\n
level=4,\n
title=uri.split(\'/\')[-1].split(\'.\')[0],\n
title=urii.split(\'/\')[-1].split(\'.\')[0],\n
form_id=\'\')\n
)\n
result.append(\n
......@@ -254,7 +254,7 @@ if portal_skin is not None and portal_skin=="ODT":\n
method_id=\'getDocumentationHelper\',\n
form_id=\'%s_view\' % class_name,\n
param_list=[class_name,\n
uri],\n
urii],\n
listbox_display_mode=\'FlatListMode\')\n
)\n
return result\n
......@@ -330,6 +330,7 @@ return result\n
<string>getattr</string>
<string>child_uri_title</string>
<string>sub_child_object</string>
<string>sektion</string>
<string>append</string>
<string>$append0</string>
<string>x</string>
......@@ -340,6 +341,7 @@ return result\n
<string>klass</string>
<string>classmethod</string>
<string>propertysheets</string>
<string>urii</string>
</tuple>
</value>
</item>
......
......@@ -81,11 +81,11 @@ else:\n
for uri in uri_list:\n
uri_object = context.getDocumentationHelper(class_name, uri)\n
if class_name in [\'PortalTypeDocumentationHelper\',\'PortalTypeInstanceDocumentationHelper\']:\n
for section in uri_object.getSectionList():\n
if section.class_name == \'ClassMethodDocumentationHelper\':\n
class_method_list+=section.uri_list\n
if section.class_name == \'PortalTypePropertySheetDocumentationHelper\':\n
propertysheet_list+=section.uri_list\n
for sectione in uri_object.getSectionList():\n
if sectione.class_name == \'ClassMethodDocumentationHelper\':\n
class_method_list+=sectione.uri_list\n
if sectione.class_name == \'PortalTypePropertySheetDocumentationHelper\':\n
propertysheet_list+=sectione.uri_list\n
sub_result.append(\n
ReportSection(\n
path=context.getPortalObject().portal_classes.getRelativeUrl(),\n
......@@ -171,7 +171,7 @@ return (sub_result,class_method_list,propertysheet_list)\n
<string>_getiter_</string>
<string>uri</string>
<string>uri_object</string>
<string>section</string>
<string>sectione</string>
<string>_inplacevar_</string>
<string>_getitem_</string>
<string>dict</string>
......
119
\ No newline at end of file
123
\ 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