[Erp5-report] r35995 kazuhiko - in /erp5/trunk/bt5/erp5_base: WorkflowTemplateItem/portal_w...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 4 15:01:09 CEST 2010
Author: kazuhiko
Date: Fri Jun 4 15:01:07 2010
New Revision: 35995
URL: http://svn.erp5.org?rev=35995&view=rev
Log:
* Do not invoke simulation_movement_causality_interaction_workflow/interactions/calculate_causality for temporary documents.
Well, calling 'python:not here.isTempDocument()' needs a bit of time. So it becomes a bit slower for non-temporary documents. If we often want to have 'isTempDocument()' check for interactions, adding 'Ignore Temporary Document' option in InteractionDefinition class can be a good idea to reduce the load of preparing python expresison context.
Modified:
erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/simulation_movement_causality_interaction_workflow/interactions/calculate_causality.xml
erp5/trunk/bt5/erp5_base/bt/change_log
erp5/trunk/bt5/erp5_base/bt/revision
Modified: erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/simulation_movement_causality_interaction_workflow/interactions/calculate_causality.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/simulation_movement_causality_interaction_workflow/interactions/calculate_causality.xml?rev=35995&r1=35994&r2=35995&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/simulation_movement_causality_interaction_workflow/interactions/calculate_causality.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/simulation_movement_causality_interaction_workflow/interactions/calculate_causality.xml [utf8] Fri Jun 4 15:01:07 2010
@@ -42,7 +42,7 @@
<item>
<key> <string>guard</string> </key>
<value>
- <none/>
+ <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
@@ -84,4 +84,38 @@
</dictionary>
</pickle>
</record>
+ <record id="2" aka="AAAAAAAAAAI=">
+ <pickle>
+ <tuple>
+ <global name="Guard" module="Products.DCWorkflow.Guard"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>expr</string> </key>
+ <value>
+ <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+ <record id="3" aka="AAAAAAAAAAM=">
+ <pickle>
+ <tuple>
+ <global name="Expression" module="Products.CMFCore.Expression"/>
+ <tuple/>
+ </tuple>
+ </pickle>
+ <pickle>
+ <dictionary>
+ <item>
+ <key> <string>text</string> </key>
+ <value> <string>python:not here.isTempDocument()</string> </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
</ZopeData>
Modified: erp5/trunk/bt5/erp5_base/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/bt/change_log?rev=35995&r1=35994&r2=35995&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/bt/change_log [utf8] (original)
+++ erp5/trunk/bt5/erp5_base/bt/change_log [utf8] Fri Jun 4 15:01:07 2010
@@ -1,3 +1,6 @@
+2010-06-04 kazuhiko
+* Do not invoke simulation_movement_causality_interaction_workflow/interactions/calculate_causality for temporary documents.
+
2010-05-28 kazuhiko
* Rename 'force_update' property to 'update_always'.
Modified: erp5/trunk/bt5/erp5_base/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/bt/revision?rev=35995&r1=35994&r2=35995&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_base/bt/revision [utf8] Fri Jun 4 15:01:07 2010
@@ -1,1 +1,1 @@
-770
+771
More information about the Erp5-report
mailing list