Commit 8d478504 authored by Jérome Perrin's avatar Jérome Perrin

translate

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41306 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 757654df
...@@ -61,6 +61,7 @@ base_category = portal.portal_categories.quantity_unit\n ...@@ -61,6 +61,7 @@ base_category = portal.portal_categories.quantity_unit\n
list_method_id = portal.portal_preferences.\\\n list_method_id = portal.portal_preferences.\\\n
getPreferredCategoryChildItemListMethodId(\n getPreferredCategoryChildItemListMethodId(\n
\'getCategoryChildCompactLogicalPathItemList\')\n \'getCategoryChildCompactLogicalPathItemList\')\n
\n
method = getattr(base_category, list_method_id)\n method = getattr(base_category, list_method_id)\n
item_list = method(base=0, local_sort_id=(\'int_index\', \'translated_title\'),\n item_list = method(base=0, local_sort_id=(\'int_index\', \'translated_title\'),\n
checked_permission=\'View\')\n checked_permission=\'View\')\n
...@@ -103,7 +104,7 @@ if resource_value is None:\n ...@@ -103,7 +104,7 @@ if resource_value is None:\n
resource_value = resource_list[0]\n resource_value = resource_list[0]\n
\n \n
if resource_value is not None:\n if resource_value is not None:\n
quantity_unit_list = [(x.getLogicalPath(), x.getCategoryRelativeUrl(base=0))\n quantity_unit_list = [(x.getTranslatedLogicalPath(), x.getCategoryRelativeUrl(base=0))\n
for x in resource_value.getQuantityUnitValueList()]\n for x in resource_value.getQuantityUnitValueList()]\n
# return the first quantity_unit item of resource\n # return the first quantity_unit item of resource\n
result_item_list.extend(quantity_unit_list)\n result_item_list.extend(quantity_unit_list)\n
......
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