Commit 5b2c44f1 authored by Mayoro Diagne's avatar Mayoro Diagne

2008-09-25: mayoro

- Adding litbox of class methods for every classes
- Making classes and propertysheets availeble when generating index

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23825 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b5a0e127
......@@ -199,7 +199,9 @@ if portal_skin is not None and portal_skin=="ODT":\n
title="Appendix",\n
form_id=\'\')\n
)\n
classmethod = dict().fromkeys([x for x in class_methods_list]).keys()\n
classmethods = dict().fromkeys([x for x in class_methods_list]).keys()\n
klasses = dict().fromkeys([\'.\'.join(x.split(\'.\')[:-2]) for x in classmethods]).keys()\n
klasses.sort()\n
propertysheet = dict(zip([x.split(\'/\')[-1] for x in property_sheets_list],property_sheets_list))\n
result.append(\n
ReportSection(\n
......@@ -207,13 +209,22 @@ if portal_skin is not None and portal_skin=="ODT":\n
title="Class Methods",\n
form_id=\'\')\n
)\n
result.append(\n
ReportSection(\n
form_id=\'PortalTypeDocumentationHelperAppendixClassMethod_view\',\n
selection_params=dict(class_method_list=classmethod, obj=uri_object),\n
selection_name=\'class_method_selection\',\n
listbox_display_mode=\'FlatListMode\')\n
)\n
for klass in klasses:\n
classmethod = dict().fromkeys([x.split(\'.\')[-1] for x in classmethods if x.startswith(klass)]).keys()\n
classmethod.sort()\n
result.append(\n
ReportSection(\n
level=4,\n
title=klass,\n
form_id=\'\')\n
)\n
result.append(\n
ReportSection(\n
form_id=\'PortalTypeDocumentationHelperAppendixClassMethod_view\',\n
selection_params=dict(class_method_list=classmethod, obj=uri_object),\n
selection_name=\'class_method_selection\',\n
listbox_display_mode=\'FlatListMode\')\n
)\n
result.append(\n
ReportSection(\n
level=3,\n
......@@ -231,6 +242,12 @@ if portal_skin is not None and portal_skin=="ODT":\n
propertysheets = propertysheet.values()\n
propertysheets.sort(compareFileName)\n
for uri in propertysheets:\n
result.append(\n
ReportSection(\n
level=4,\n
title=uri.split(\'/\')[-1].split(\'.\')[0],\n
form_id=\'\')\n
)\n
result.append(\n
ReportSection(\n
path=context.getPortalObject().portal_classes.getRelativeUrl(),\n
......@@ -316,9 +333,12 @@ return result\n
<string>append</string>
<string>$append0</string>
<string>x</string>
<string>classmethod</string>
<string>classmethods</string>
<string>klasses</string>
<string>zip</string>
<string>propertysheet</string>
<string>klass</string>
<string>classmethod</string>
<string>propertysheets</string>
</tuple>
</value>
......
112
\ No newline at end of file
117
\ 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