Commit af7deac9 authored by Tatuya Kamada's avatar Tatuya Kamada

2010-09-28 tatuya

* Stop to overwriting a value by movement_resource_interaraction_workflow when the movement is created by a builder.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38707 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cedf10cc
...@@ -40,12 +40,16 @@ ...@@ -40,12 +40,16 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string>Set a value from the resource except when the movement is created by builders.\r\n
\r\n
In the Expression, getOid() returns None when the movement is not persistent as a ZODB object.\r\n
Using getOid(), we predict that it is created by builders. Also, we check whether the builder intended to set a value or not.\r\n
When the movement already has a value in the end of the transaction, we use it instead of coping from the resource.</string> </value>
</item> </item>
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
<value> <value>
<none/> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -87,4 +91,32 @@ ...@@ -87,4 +91,32 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
</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>
<global name="Expression" module="Products.CMFCore.Expression"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:not(here.getOid() is None and here.getBaseContribution() is not None)</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -40,12 +40,16 @@ ...@@ -40,12 +40,16 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string>Set a value from the resource except when the movement is created by builders.\r\n
\r\n
In the Expression, getOid() returns None when the movement is not persistent as a ZODB object.\r\n
Using getOid(), we predict that it is created by builders. Also, we check whether the builder intended to set a value or not.\r\n
When the movement already has a value in the end of the transaction, we use it instead of coping from the resource.</string> </value>
</item> </item>
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
<value> <value>
<none/> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -87,4 +91,32 @@ ...@@ -87,4 +91,32 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
</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>
<global name="Expression" module="Products.CMFCore.Expression"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:not(here.getOid() is None and here.getQuantityUnit() is not None)</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -40,12 +40,16 @@ ...@@ -40,12 +40,16 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string>Set a value from the resource except when the movement is created by builders.\r\n
\r\n
In the Expression, getOid() returns None when the movement is not persistent as a ZODB object.\r\n
Using getOid(), we predict that it is created by builders. Also, we check whether the builder intended to set a value or not.\r\n
When the movement already has a value in the end of the transaction, we use it instead of coping from the resource.</string> </value>
</item> </item>
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
<value> <value>
<none/> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -87,4 +91,32 @@ ...@@ -87,4 +91,32 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
</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>
<global name="Expression" module="Products.CMFCore.Expression"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:not (here.getOid() is None and here.getUse() is not None)</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
2010-09-28 tatuya
* Stop to overwriting a value by movement_resource_interaraction_workflow when the movement is created by a builder.
2010-09-28 yo 2010-09-28 yo
* Make the interaction update_simulation called only once. * Make the interaction update_simulation called only once.
......
853 854
\ 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