Commit 97ef2d88 authored by Jérome Perrin's avatar Jérome Perrin

Use getParentValue instead of getParent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24098 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 00c2cf83
...@@ -64,7 +64,7 @@ for ram_cache_plugin in context.getPortalObject().portal_catalog(\n ...@@ -64,7 +64,7 @@ for ram_cache_plugin in context.getPortalObject().portal_catalog(\n
result.append(ReportSection(path = ram_cache_plugin.getRelativeUrl(), \n result.append(ReportSection(path = ram_cache_plugin.getRelativeUrl(), \n
form_id = \'RamCache_viewStatisticList\',\n form_id = \'RamCache_viewStatisticList\',\n
selection_params = {\'list_lines\':0,},\n selection_params = {\'list_lines\':0,},\n
title = \'%s/%s\' %(ram_cache_plugin.getParent().getTitle(),\n title = \'%s/%s\' %(ram_cache_plugin.getParentValue().getTitle(),\n
ram_cache_plugin.getTitle()),))\n ram_cache_plugin.getTitle()),))\n
return result\n return result\n
</string> </value> </string> </value>
......
...@@ -63,7 +63,7 @@ from Products.ERP5Type.Document import newTempBase\n ...@@ -63,7 +63,7 @@ from Products.ERP5Type.Document import newTempBase\n
cache_stats = context.getPortalObject().portal_caches.getCacheTotalMemorySize()\n cache_stats = context.getPortalObject().portal_caches.getCacheTotalMemorySize()\n
cache_factory_list_stats = cache_stats[\'stats\']\n cache_factory_list_stats = cache_stats[\'stats\']\n
cache_plugin_id = context.getId()\n cache_plugin_id = context.getId()\n
cache_factory_id = context.getParent().getId()\n cache_factory_id = context.getParentValue().getId()\n
cache_plugin_stats = cache_factory_list_stats[cache_factory_id]\n cache_plugin_stats = cache_factory_list_stats[cache_factory_id]\n
cache_plugin_stats_data = cache_plugin_stats[\'cp_cache_keys_total_size\']\n cache_plugin_stats_data = cache_plugin_stats[\'cp_cache_keys_total_size\']\n
\n \n
......
983 984
\ 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