Commit a937a8e7 authored by Mayoro Diagne's avatar Mayoro Diagne

2008-09-26: mayoro

- Renaming variables respecting naming convention

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23839 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7da540bd
...@@ -9,22 +9,10 @@ ...@@ -9,22 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>Script_magic</string> </key> <key> <string>Script_magic</string> </key>
<value> <int>3</int> </value> <value> <int>3</int> </value>
</item> </item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -183,11 +171,11 @@ for section in section_list:\n ...@@ -183,11 +171,11 @@ for section in section_list:\n
if root_class_name == "ERP5SiteDocumentationHelper" and class_name==\'DCWorkflowDocumentationHelper\':\n if root_class_name == "ERP5SiteDocumentationHelper" and class_name==\'DCWorkflowDocumentationHelper\':\n
for sub_child_uri in child_uri.uri_list:\n for sub_child_uri in child_uri.uri_list:\n
sub_child_object = context.getDocumentationHelper(class_name, sub_child_uri)\n sub_child_object = context.getDocumentationHelper(class_name, sub_child_uri)\n
for sektion in sub_child_object.getSectionList(): \n for sub_child_section in sub_child_object.getSectionList(): \n
if sektion.class_name == \'DCWorkflowScriptDocumentationHelper\':\n if sub_child_section.class_name == \'DCWorkflowScriptDocumentationHelper\':\n
class_name = sektion.class_name\n class_name = sub_child_section.class_name\n
results=context.DocumentationHelper_getDocumentationSectionListParams(class_name,\n results=context.DocumentationHelper_getDocumentationSectionListParams(class_name,\n
sektion.uri_list, "%s:" % sub_child_object.getId())\n sub_child_section.uri_list, "%s:" % sub_child_object.getId())\n
result+=results[0]\n result+=results[0]\n
class_methods_list+=results[1]\n class_methods_list+=results[1]\n
property_sheets_list+=results[2]\n property_sheets_list+=results[2]\n
...@@ -200,8 +188,8 @@ if portal_skin is not None and portal_skin=="ODT":\n ...@@ -200,8 +188,8 @@ if portal_skin is not None and portal_skin=="ODT":\n
form_id=\'\')\n form_id=\'\')\n
)\n )\n
classmethods = 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 class_list = dict().fromkeys([\'.\'.join(x.split(\'.\')[:-2]) for x in classmethods]).keys()\n
klasses.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
result.append(\n result.append(\n
ReportSection(\n ReportSection(\n
...@@ -209,13 +197,13 @@ if portal_skin is not None and portal_skin=="ODT":\n ...@@ -209,13 +197,13 @@ 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 for class_name in class_list:\n
classmethod = dict().fromkeys([x.split(\'.\')[-1] for x in classmethods if x.startswith(klass)]).keys()\n classmethod = dict().fromkeys([x.split(\'.\')[-1] for x in classmethods if x.startswith(class_name)]).keys()\n
classmethod.sort()\n classmethod.sort()\n
result.append(\n result.append(\n
ReportSection(\n ReportSection(\n
level=4,\n level=4,\n
title=klass,\n title=class_name,\n
form_id=\'\')\n form_id=\'\')\n
)\n )\n
result.append(\n result.append(\n
...@@ -241,11 +229,11 @@ if portal_skin is not None and portal_skin=="ODT":\n ...@@ -241,11 +229,11 @@ if portal_skin is not None and portal_skin=="ODT":\n
class_name = \'PortalTypePropertySheetDocumentationHelper\'\n class_name = \'PortalTypePropertySheetDocumentationHelper\'\n
propertysheets = propertysheet.values()\n propertysheets = propertysheet.values()\n
propertysheets.sort(compareFileName)\n propertysheets.sort(compareFileName)\n
for urii in propertysheets:\n for uri in propertysheets:\n
result.append(\n result.append(\n
ReportSection(\n ReportSection(\n
level=4,\n level=4,\n
title=urii.split(\'/\')[-1].split(\'.\')[0],\n title=uri.split(\'/\')[-1].split(\'.\')[0],\n
form_id=\'\')\n form_id=\'\')\n
)\n )\n
result.append(\n result.append(\n
...@@ -254,7 +242,7 @@ if portal_skin is not None and portal_skin=="ODT":\n ...@@ -254,7 +242,7 @@ if portal_skin is not None and portal_skin=="ODT":\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
urii],\n uri],\n
listbox_display_mode=\'FlatListMode\')\n listbox_display_mode=\'FlatListMode\')\n
)\n )\n
return result\n return result\n
...@@ -266,12 +254,6 @@ return result\n ...@@ -266,12 +254,6 @@ return result\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -330,18 +312,16 @@ return result\n ...@@ -330,18 +312,16 @@ return result\n
<string>getattr</string> <string>getattr</string>
<string>child_uri_title</string> <string>child_uri_title</string>
<string>sub_child_object</string> <string>sub_child_object</string>
<string>sektion</string> <string>sub_child_section</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>x</string> <string>x</string>
<string>classmethods</string> <string>classmethods</string>
<string>klasses</string> <string>class_list</string>
<string>zip</string> <string>zip</string>
<string>propertysheet</string> <string>propertysheet</string>
<string>klass</string>
<string>classmethod</string> <string>classmethod</string>
<string>propertysheets</string> <string>propertysheets</string>
<string>urii</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -360,12 +340,6 @@ return result\n ...@@ -360,12 +340,6 @@ return result\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>DocumentationHelper_getDocumentationSectionList</string> </value> <value> <string>DocumentationHelper_getDocumentationSectionList</string> </value>
</item> </item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
...@@ -9,22 +9,10 @@ ...@@ -9,22 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>Script_magic</string> </key> <key> <string>Script_magic</string> </key>
<value> <int>3</int> </value> <value> <int>3</int> </value>
</item> </item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -81,11 +69,11 @@ else:\n ...@@ -81,11 +69,11 @@ else:\n
for uri in uri_list:\n for uri in uri_list:\n
uri_object = context.getDocumentationHelper(class_name, uri)\n uri_object = context.getDocumentationHelper(class_name, uri)\n
if class_name in [\'PortalTypeDocumentationHelper\',\'PortalTypeInstanceDocumentationHelper\']:\n if class_name in [\'PortalTypeDocumentationHelper\',\'PortalTypeInstanceDocumentationHelper\']:\n
for sectione in uri_object.getSectionList():\n for section in uri_object.getSectionList():\n
if sectione.class_name == \'ClassMethodDocumentationHelper\':\n if section.class_name == \'ClassMethodDocumentationHelper\':\n
class_method_list+=sectione.uri_list\n class_method_list+=section.uri_list\n
if sectione.class_name == \'PortalTypePropertySheetDocumentationHelper\':\n if section.class_name == \'PortalTypePropertySheetDocumentationHelper\':\n
propertysheet_list+=sectione.uri_list\n propertysheet_list+=section.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
...@@ -120,12 +108,6 @@ return (sub_result,class_method_list,propertysheet_list)\n ...@@ -120,12 +108,6 @@ return (sub_result,class_method_list,propertysheet_list)\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>class_name=\'\', uri_list=[], prefix_title=\'\'</string> </value> <value> <string>class_name=\'\', uri_list=[], prefix_title=\'\'</string> </value>
...@@ -171,7 +153,7 @@ return (sub_result,class_method_list,propertysheet_list)\n ...@@ -171,7 +153,7 @@ return (sub_result,class_method_list,propertysheet_list)\n
<string>_getiter_</string> <string>_getiter_</string>
<string>uri</string> <string>uri</string>
<string>uri_object</string> <string>uri_object</string>
<string>sectione</string> <string>section</string>
<string>_inplacevar_</string> <string>_inplacevar_</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>dict</string> <string>dict</string>
...@@ -197,12 +179,6 @@ return (sub_result,class_method_list,propertysheet_list)\n ...@@ -197,12 +179,6 @@ return (sub_result,class_method_list,propertysheet_list)\n
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>DocumentationHelper_getDocumentationSectionListParams</string> </value> <value> <string>DocumentationHelper_getDocumentationSectionListParams</string> </value>
</item> </item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
<value> <value>
......
123 133
\ 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