Commit d64a31f4 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2010-10-12 yo

* Fix an error that calculate may be called too early before a new simulation movement is indexed.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39050 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11f80857
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </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>delivery_movement = context.getDeliveryValue()\n
\n
if delivery_movement is not None:\n
delivery = delivery_movement.getRootDeliveryValue()\n
delivery.activate().Delivery_calculate()\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></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>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>delivery_movement</string>
<string>None</string>
<string>delivery</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SimulationMovement_calculateCausalityState</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -52,11 +52,13 @@ ...@@ -52,11 +52,13 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>simulation_movement = state_change[\'object\']\n <value> <string>simulation_movement = state_change[\'object\']\n
\n \n
delivery_movement = simulation_movement.getDeliveryValue()\n # It is not quite useful to invoke the method calculate when a newly created\n
\n # simulation movement is not indexed yet, so it is better to wait for the indexing\n
if delivery_movement is not None:\n # to be done.\n
delivery = delivery_movement.getExplanationValue()\n path = simulation_movement.getPath()\n
delivery.activate().Delivery_calculate()\n method_id_list = (\'immediateReindexObject\', \'recursiveImmediateReindexObject\')\n
simulation_movement.activate(after_path_and_method_id=(path, method_id_list)) \\\n
.SimulationMovement_calculateCausalityState()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -115,9 +117,8 @@ if delivery_movement is not None:\n ...@@ -115,9 +117,8 @@ if delivery_movement is not None:\n
<string>_getitem_</string> <string>_getitem_</string>
<string>simulation_movement</string> <string>simulation_movement</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>delivery_movement</string> <string>path</string>
<string>None</string> <string>method_id_list</string>
<string>delivery</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
2010-10-12 yo
* Fix an error that calculate may be called too early before a new simulation movement is indexed.
2010-10-12 yo 2010-10-12 yo
* Tweak the configurations of several interaction workflows for optimization. * Tweak the configurations of several interaction workflows for optimization.
......
871 879
\ 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