[Erp5-report] r39050 yo - in /erp5/trunk/bt5/erp5_base: SkinTemplateItem/portal_skins/erp5_...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 12 12:54:59 CEST 2010


Author: yo
Date: Tue Oct 12 12:54:55 2010
New Revision: 39050

URL: http://svn.erp5.org?rev=39050&view=rev
Log:
2010-10-12 yo
* Fix an error that calculate may be called too early before a new simulation movement is indexed.

Added:
    erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/SimulationMovement_calculateCausalityState.xml
Modified:
    erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/simulation_movement_causality_interaction_workflow/scripts/SimulationMovement_calculateCausalityState.xml
    erp5/trunk/bt5/erp5_base/bt/change_log
    erp5/trunk/bt5/erp5_base/bt/revision

Added: erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/SimulationMovement_calculateCausalityState.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/SimulationMovement_calculateCausalityState.xml?rev=39050&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/SimulationMovement_calculateCausalityState.xml (added)
+++ erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/SimulationMovement_calculateCausalityState.xml [utf8] Tue Oct 12 12:54:55 2010
@@ -0,0 +1,126 @@
+<?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>

Modified: erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/simulation_movement_causality_interaction_workflow/scripts/SimulationMovement_calculateCausalityState.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/simulation_movement_causality_interaction_workflow/scripts/SimulationMovement_calculateCausalityState.xml?rev=39050&r1=39049&r2=39050&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/simulation_movement_causality_interaction_workflow/scripts/SimulationMovement_calculateCausalityState.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/simulation_movement_causality_interaction_workflow/scripts/SimulationMovement_calculateCausalityState.xml [utf8] Tue Oct 12 12:54:55 2010
@@ -52,11 +52,13 @@
             <key> <string>_body</string> </key>
             <value> <string>simulation_movement = state_change[\'object\']\n
 \n
-delivery_movement = simulation_movement.getDeliveryValue()\n
-\n
-if delivery_movement is not None:\n
-  delivery = delivery_movement.getExplanationValue()\n
-  delivery.activate().Delivery_calculate()\n
+# It is not quite useful to invoke the method calculate when a newly created\n
+# simulation movement is not indexed yet, so it is better to wait for the indexing\n
+# to be done.\n
+path = simulation_movement.getPath()\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>
         </item>
         <item>
@@ -115,9 +117,8 @@ if delivery_movement is not None:\n
                             <string>_getitem_</string>
                             <string>simulation_movement</string>
                             <string>_getattr_</string>
-                            <string>delivery_movement</string>
-                            <string>None</string>
-                            <string>delivery</string>
+                            <string>path</string>
+                            <string>method_id_list</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/erp5_base/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/bt/change_log?rev=39050&r1=39049&r2=39050&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/bt/change_log [utf8] (original)
+++ erp5/trunk/bt5/erp5_base/bt/change_log [utf8] Tue Oct 12 12:54:55 2010
@@ -1,4 +1,7 @@
 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
 * Tweak the configurations of several interaction workflows for optimization.
 
 2010-09-30 yusei

Modified: erp5/trunk/bt5/erp5_base/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/bt/revision?rev=39050&r1=39049&r2=39050&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_base/bt/revision [utf8] Tue Oct 12 12:54:55 2010
@@ -1 +1 @@
-871
\ No newline at end of file
+879
\ No newline at end of file




More information about the Erp5-report mailing list