Commit 7938f17d authored by Mayoro Diagne's avatar Mayoro Diagne

2008-10-07: mayoro

- do not display Appendix when there is no class_method or property_sheet to display
- do not display class_method section or property_sheet section when it's empty

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24081 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 875fe8f3
...@@ -188,6 +188,7 @@ for section in section_list:\n ...@@ -188,6 +188,7 @@ for section in section_list:\n
property_sheets_list+=results[2]\n property_sheets_list+=results[2]\n
\n \n
if portal_skin is not None and portal_skin=="ODT":\n if portal_skin is not None and portal_skin=="ODT":\n
if class_methods_list !=[] or property_sheets_list !=[]:\n
result.append(\n result.append(\n
ReportSection(\n ReportSection(\n
level=2,\n level=2,\n
...@@ -198,6 +199,7 @@ if portal_skin is not None and portal_skin=="ODT":\n ...@@ -198,6 +199,7 @@ if portal_skin is not None and portal_skin=="ODT":\n
class_list = dict().fromkeys([\'.\'.join(x.split(\'.\')[:-2]) for x in classmethods]).keys()\n class_list = dict().fromkeys([\'.\'.join(x.split(\'.\')[:-2]) for x in classmethods]).keys()\n
class_list.sort()\n class_list.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
if classmethods !=[]:\n
result.append(\n result.append(\n
ReportSection(\n ReportSection(\n
level=3,\n level=3,\n
...@@ -220,6 +222,7 @@ if portal_skin is not None and portal_skin=="ODT":\n ...@@ -220,6 +222,7 @@ if portal_skin is not None and portal_skin=="ODT":\n
selection_name=\'class_method_selection\',\n selection_name=\'class_method_selection\',\n
listbox_display_mode=\'FlatListMode\')\n listbox_display_mode=\'FlatListMode\')\n
)\n )\n
if propertysheet.keys() != []:\n
result.append(\n result.append(\n
ReportSection(\n ReportSection(\n
level=3,\n level=3,\n
......
146 148
\ 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