Commit 6c003696 authored by Aurel's avatar Aurel

fix missing parenthese

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11497 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b740d4bb
......@@ -73,7 +73,7 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
\n
object = state_change.object\n
# first check if we have line defined\n
if len(object.objectValues(portal_type=\'Cash Delivery Line\') == 0:\n
if len(object.objectValues(portal_type=\'Cash Delivery Line\')) == 0:\n
msg = Message(domain="ui", message="No line defined on document.")\n
raise ValidationFailed, (msg,)\n
\n
......@@ -114,9 +114,7 @@ if line_letter != dest.getCodification()[0]:\n
<item>
<key> <string>errors</string> </key>
<value>
<tuple>
<string>invalid syntax (checkDestination, line 6)</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......@@ -131,12 +129,25 @@ if line_letter != dest.getCodification()[0]:\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple/>
<tuple>
<string>state_change</string>
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string>
<string>_getattr_</string>
<string>object</string>
<string>len</string>
<string>msg</string>
<string>dest</string>
<string>_getitem_</string>
<string>line_letter</string>
</tuple>
</value>
</item>
</dictionary>
......@@ -147,7 +158,7 @@ if line_letter != dest.getCodification()[0]:\n
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple/>
<none/>
</value>
</item>
<item>
......
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