Commit 0fde78f5 authored by Jérome Perrin's avatar Jérome Perrin

rename script, and translate delivery portal type

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27245 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ac59174e
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>here/Item_getFastInputPortalTypeList</string> </value> <value> <string>here/Item_getDeliveryPortalTypeItemList</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -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>
...@@ -65,13 +53,14 @@ ...@@ -65,13 +53,14 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>portal_type_list = [\'Internal Packing List\' , \n <value> <string>from Products.ERP5Type.Message import translateString\n
\'Sale Order\',\n portal_type_list = [\'Internal Packing List\' , \n
\'Sale Packing List\',\n \'Sale Order\',\n
\'Purchase Order\',\n \'Sale Packing List\',\n
\'Purchase Packing List\']\n \'Purchase Order\',\n
\'Purchase Packing List\']\n
\n \n
return [(x,x) for x in portal_type_list ]\n return [(\'\', \'\')] + [(translateString(x), x) for x in portal_type_list ]\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -80,12 +69,6 @@ return [(x,x) for x in portal_type_list ]\n ...@@ -80,12 +69,6 @@ return [(x,x) for x in portal_type_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></string> </value> <value> <string></string> </value>
...@@ -114,6 +97,8 @@ return [(x,x) for x in portal_type_list ]\n ...@@ -114,6 +97,8 @@ return [(x,x) for x in portal_type_list ]\n
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>Products.ERP5Type.Message</string>
<string>translateString</string>
<string>portal_type_list</string> <string>portal_type_list</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
...@@ -135,7 +120,7 @@ return [(x,x) for x in portal_type_list ]\n ...@@ -135,7 +120,7 @@ return [(x,x) for x in portal_type_list ]\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Item_getFastInputPortalTypeList</string> </value> <value> <string>Item_getDeliveryPortalTypeItemList</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
...@@ -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>
...@@ -74,18 +62,6 @@ ...@@ -74,18 +62,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>**kw</string> </value> <value> <string>**kw</string> </value>
......
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>here/Item_getFastInputPortalTypeList</string> </value> <value> <string>here/Item_getDeliveryPortalTypeItemList</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
145 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