Commit cebd9726 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix typos in scripts.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36780 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e69c79ed
...@@ -61,7 +61,7 @@ This is a sample implementation that returns the first item in each list.\n ...@@ -61,7 +61,7 @@ This is a sample implementation that returns the first item in each list.\n
value_list_dict = context.UnifySolver_getDefaultConfigurationPropertyListDict()\n value_list_dict = context.UnifySolver_getDefaultConfigurationPropertyListDict()\n
value_dict = {}\n value_dict = {}\n
for property_id, value_list in value_list_dict.items():\n for property_id, value_list in value_list_dict.items():\n
value_dict[proeprty_id] = value_list[0]\n value_dict[property_id] = value_list[0]\n
return value_dict\n return value_dict\n
</string> </value> </string> </value>
</item> </item>
...@@ -108,7 +108,6 @@ return value_dict\n ...@@ -108,7 +108,6 @@ return value_dict\n
<string>value_list</string> <string>value_list</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>_write_</string> <string>_write_</string>
<string>proeprty_id</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -59,9 +59,9 @@ This script returns a dictionary of possible values for Unify Solver.\n ...@@ -59,9 +59,9 @@ This script returns a dictionary of possible values for Unify Solver.\n
solver_decision = context.getCausalityValue()\n solver_decision = context.getCausalityValue()\n
tester = solver_decision.getCausalityValue()\n tester = solver_decision.getCausalityValue()\n
value_list_dict = {}\n value_list_dict = {}\n
for property_id in tester.getTestedProperty():\n for property_id in tester.getTestedPropertyList():\n
value_list = []\n value_list = []\n
for simulation_movement in configurable.getDeliveryValueList():\n for simulation_movement in context.getDeliveryValueList():\n
movement = simulation_movement.getDeliveryValue()\n movement = simulation_movement.getDeliveryValue()\n
value = movement.getProperty(property_id)\n value = movement.getProperty(property_id)\n
if value not in value_list:\n if value not in value_list:\n
...@@ -70,7 +70,7 @@ for property_id in tester.getTestedProperty():\n ...@@ -70,7 +70,7 @@ for property_id in tester.getTestedProperty():\n
value = simulation_movement.getProperty(property_id)\n value = simulation_movement.getProperty(property_id)\n
if value not in value_list:\n if value not in value_list:\n
value_list.append(value)\n value_list.append(value)\n
value_list_dict[property_id] = [(x, repr(x)) for x in value_list]\n value_list_dict[property_id] = [(x, str(x)) for x in value_list]\n
return value_list_dict\n return value_list_dict\n
</string> </value> </string> </value>
</item> </item>
...@@ -116,7 +116,6 @@ return value_list_dict\n ...@@ -116,7 +116,6 @@ return value_list_dict\n
<string>_getiter_</string> <string>_getiter_</string>
<string>property_id</string> <string>property_id</string>
<string>value_list</string> <string>value_list</string>
<string>configurable</string>
<string>simulation_movement</string> <string>simulation_movement</string>
<string>movement</string> <string>movement</string>
<string>value</string> <string>value</string>
...@@ -124,7 +123,7 @@ return value_list_dict\n ...@@ -124,7 +123,7 @@ return value_list_dict\n
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>x</string> <string>x</string>
<string>repr</string> <string>str</string>
<string>_write_</string> <string>_write_</string>
</tuple> </tuple>
</value> </value>
......
121 122
\ 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