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 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\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
<value> <string>object = state_change[\'object\']\n
object.Base_checkConsistency()\n
</string> </value>
</item>
<item>
......@@ -126,16 +116,9 @@ if check_result:\n
<value>
<tuple>
<string>state_change</string>
<string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>_getitem_</string>
<string>object</string>
<string>_getattr_</string>
<string>check_result</string>
<string>err</string>
<string>hasattr</string>
</tuple>
</value>
</item>
......
724
\ No newline at end of file
725
\ 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