Commit cb60f7c6 authored by Tatuya Kamada's avatar Tatuya Kamada

2010-09-28 tatuya

* Previous commits(r38692,38707) were not solved the issue that movement_resource_interaction_workflow prevents the delivery buliding. So, revert them.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38718 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad0d6da6
......@@ -27,29 +27,25 @@
<item>
<key> <string>after_script_name</string> </key>
<value>
<tuple/>
<list>
<string>Movement_copyBaseContributionFromResource</string>
</list>
</value>
</item>
<item>
<key> <string>before_commit_script_name</string> </key>
<value>
<list>
<string>Movement_copyBaseContributionFromResource</string>
</list>
<tuple/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<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>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
<none/>
</value>
</item>
<item>
......@@ -91,32 +87,4 @@ When the movement already has a value in the end of the transaction, we use it i
</dictionary>
</pickle>
</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>
......@@ -27,29 +27,25 @@
<item>
<key> <string>after_script_name</string> </key>
<value>
<tuple/>
<list>
<string>Movement_copyQuantityUnitFromResource</string>
</list>
</value>
</item>
<item>
<key> <string>before_commit_script_name</string> </key>
<value>
<list>
<string>Movement_copyQuantityUnitFromResource</string>
</list>
<tuple/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<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>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
<none/>
</value>
</item>
<item>
......@@ -91,32 +87,4 @@ When the movement already has a value in the end of the transaction, we use it i
</dictionary>
</pickle>
</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>
......@@ -27,29 +27,25 @@
<item>
<key> <string>after_script_name</string> </key>
<value>
<tuple/>
<list>
<string>Movement_copyUseFromResource</string>
</list>
</value>
</item>
<item>
<key> <string>before_commit_script_name</string> </key>
<value>
<list>
<string>Movement_copyUseFromResource</string>
</list>
<tuple/>
</value>
</item>
<item>
<key> <string>description</string> </key>
<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>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
<none/>
</value>
</item>
<item>
......@@ -91,32 +87,4 @@ When the movement already has a value in the end of the transaction, we use it i
</dictionary>
</pickle>
</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>
2010-09-28 tatuya
* Previous commits(r38692,38707) were not solved the issue that movement_resource_interaction_workflow prevents the delivery buliding. So, revert them.
2010-09-28 tatuya
* Stop to overwriting a value by movement_resource_interaraction_workflow when the movement is created by a builder.
......
854
\ No newline at end of file
862
\ 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