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 ...@@ -199,7 +199,9 @@ if portal_skin is not None and portal_skin=="ODT":\n
title="Appendix",\n title="Appendix",\n
form_id=\'\')\n form_id=\'\')\n
)\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 propertysheet = dict(zip([x.split(\'/\')[-1] for x in property_sheets_list],property_sheets_list))\n
result.append(\n result.append(\n
ReportSection(\n ReportSection(\n
...@@ -207,6 +209,15 @@ if portal_skin is not None and portal_skin=="ODT":\n ...@@ -207,6 +209,15 @@ if portal_skin is not None and portal_skin=="ODT":\n
title="Class Methods",\n title="Class Methods",\n
form_id=\'\')\n form_id=\'\')\n
)\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 result.append(\n
ReportSection(\n ReportSection(\n
form_id=\'PortalTypeDocumentationHelperAppendixClassMethod_view\',\n form_id=\'PortalTypeDocumentationHelperAppendixClassMethod_view\',\n
...@@ -231,6 +242,12 @@ if portal_skin is not None and portal_skin=="ODT":\n ...@@ -231,6 +242,12 @@ if portal_skin is not None and portal_skin=="ODT":\n
propertysheets = propertysheet.values()\n propertysheets = propertysheet.values()\n
propertysheets.sort(compareFileName)\n propertysheets.sort(compareFileName)\n
for uri in propertysheets:\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 result.append(\n
ReportSection(\n ReportSection(\n
path=context.getPortalObject().portal_classes.getRelativeUrl(),\n path=context.getPortalObject().portal_classes.getRelativeUrl(),\n
...@@ -316,9 +333,12 @@ return result\n ...@@ -316,9 +333,12 @@ return result\n
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>x</string> <string>x</string>
<string>classmethod</string> <string>classmethods</string>
<string>klasses</string>
<string>zip</string> <string>zip</string>
<string>propertysheet</string> <string>propertysheet</string>
<string>klass</string>
<string>classmethod</string>
<string>propertysheets</string> <string>propertysheets</string>
</tuple> </tuple>
</value> </value>
......
112 117
\ 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