diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Amount_hashVariationCategoryItemList.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Amount_hashVariationCategoryItemList.xml new file mode 100755 index 0000000000000000000000000000000000000000..20c730fee417139340acfec77b9c32c84d2d445f --- /dev/null +++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Amount_hashVariationCategoryItemList.xml @@ -0,0 +1,197 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> <string encoding="base64">O/INCg==</string> </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string># Remove empty items\n +item_list = filter(lambda x: x not in [(\'\',\'\'), [\'\',\'\']], \n + item_list)\n +\n +sub_field_dict = {}\n +split_depth = 1\n +\n +for item in item_list:\n + # Get value of the item\n + item_value = item[int(not is_right_display)]\n + \n + # Hash key from item_value\n + item_split = string.split(item_value, \'/\')\n + item_key = string.join(item_split[:split_depth] , \'/\' )\n + base_category = item_split[0]\n + if not sub_field_dict.has_key(item_key):\n + # Create property dict\n + sub_field_property_dict = default_sub_field_property_dict.copy()\n + sub_field_property_dict[\'key\'] = item_key\n + sub_field_property_dict[\'required\'] = 1\n + sub_field_property_dict[\'field_type\'] = \'ListField\'\n + sub_field_property_dict[\'size\'] = 1\n + sub_field_property_dict[\'title\'] = context.portal_categories[base_category].getTitle()\n + sub_field_property_dict[\'item_list\'] = [(\'\',\'\')]\n + sub_field_dict[item_key] = sub_field_property_dict\n +\n + sub_field_dict[item_key][\'item_list\'] =\\\n + sub_field_dict[item_key][\'item_list\'] + [item]\n + if item_value in value_list:\n + sub_field_dict[item_key][\'value\'] = item_value\n +\n +return sub_field_dict.values()\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> <string>Script (Python):/nexedi/portal_skins/erp5_pdm/Amount_hashVariationCategoryItemList</string> </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>item_list, value_list, default_sub_field_property_dict={}, is_right_display=0</string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>item_list</string> + <string>value_list</string> + <string>default_sub_field_property_dict</string> + <string>is_right_display</string> + <string>filter</string> + <string>sub_field_dict</string> + <string>split_depth</string> + <string>_getiter_</string> + <string>item</string> + <string>_getitem_</string> + <string>int</string> + <string>item_value</string> + <string>_getattr_</string> + <string>string</string> + <string>item_split</string> + <string>item_key</string> + <string>base_category</string> + <string>sub_field_property_dict</string> + <string>_write_</string> + <string>context</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <tuple> + <dictionary/> + <int>0</int> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Amount_hashVariationCategoryItemList</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/ProductModule_viewProductList/listbox.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/ProductModule_viewProductList/listbox.xml index f657a2a2591641b86ce27de68b1383a4b2b5a2bb..319a023f769b8ecc1f407dc25d4664c76ddfa628 100755 --- a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/ProductModule_viewProductList/listbox.xml +++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/ProductModule_viewProductList/listbox.xml @@ -346,7 +346,7 @@ <string>Title</string> </tuple> <tuple> - <string>validation_state</string> + <string>translated_validation_state_title</string> <string>State</string> </tuple> </list> @@ -549,7 +549,7 @@ <dictionary> <item> <key> <string>method_name</string> </key> - <value> <string>portal_catalog</string> </value> + <value> <string>searchFolder</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Product_view.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Product_view.xml index d5b5cc5f7739c34363155d56f87454c5d44ab7c2..4dc4a0e5260fcb49bdcb0c2e60b37c76b1f554d2 100755 --- a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Product_view.xml +++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Product_view.xml @@ -100,8 +100,8 @@ <string>my_source_title</string> <string>my_product_line</string> <string>my_industrial_phase_list</string> - <string>validation_state</string> <string>my_reference</string> + <string>my_translated_validation_state_title</string> </list> </value> </item> diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Product_view/validation_state.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Product_view/my_translated_validation_state_title.xml similarity index 93% rename from bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Product_view/validation_state.xml rename to bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Product_view/my_translated_validation_state_title.xml index 7198735153fa74f76004a0dac0a4c9f4df1f6a9d..2d7d2549ecf8a2917099b029811661517427600d 100755 --- a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Product_view/validation_state.xml +++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/Product_view/my_translated_validation_state_title.xml @@ -12,9 +12,15 @@ </pickle> <pickle> <dictionary> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> <item> <key> <string>id</string> </key> - <value> <string>validation_state</string> </value> + <value> <string>my_translated_validation_state_title</string> </value> </item> <item> <key> <string>message_values</string> </key> @@ -124,9 +130,7 @@ </item> <item> <key> <string>default</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> @@ -265,23 +269,4 @@ </dictionary> </pickle> </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python:here.portal_workflow.getInfoFor(here, \'validation_state\')</string> </value> - </item> - </dictionary> - </pickle> - </record> </ZopeData> diff --git a/bt5/erp5_pdm/bt/change_log b/bt5/erp5_pdm/bt/change_log index b14c9c798a14ce8da46ef6f2f3fbe4e1586de71f..c3cabb102475229ed19e1a6af2ac93608234a3e6 100755 --- a/bt5/erp5_pdm/bt/change_log +++ b/bt5/erp5_pdm/bt/change_log @@ -1,3 +1,6 @@ +2006-02-20 Romain +* Display translated title on Product. + 2006-02-10 Kevin * Delete Translate action on Service Module.