Commit cd5636bb authored by Romain Courteaud's avatar Romain Courteaud

Call Base_checkConsistency

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19746 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 43d93b3e
...@@ -65,18 +65,8 @@ ...@@ -65,18 +65,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n <value> <string>object = state_change[\'object\']\n
from Products.ERP5Type.Message import Message\n object.Base_checkConsistency()\n
object = state_change[\'object\']\n
\n
check_result = object.checkConsistency()\n
\n
if check_result:\n
err = check_result[0]\n
if hasattr(err, \'getTranslatedMessage\'):\n
raise ValidationFailed, err.getTranslatedMessage()\n
# backward compatibility:\n
raise ValidationFailed, "%s: %s" % (err[4], err[3])\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -126,16 +116,9 @@ if check_result:\n ...@@ -126,16 +116,9 @@ if check_result:\n
<value> <value>
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>object</string> <string>object</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>check_result</string>
<string>err</string>
<string>hasattr</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
724 725
\ 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