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 ...@@ -73,7 +73,7 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
\n \n
object = state_change.object\n object = state_change.object\n
# first check if we have line defined\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 msg = Message(domain="ui", message="No line defined on document.")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
\n \n
...@@ -114,9 +114,7 @@ if line_letter != dest.getCodification()[0]:\n ...@@ -114,9 +114,7 @@ if line_letter != dest.getCodification()[0]:\n
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
<value> <value>
<tuple> <tuple/>
<string>invalid syntax (checkDestination, line 6)</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -131,12 +129,25 @@ if line_letter != dest.getCodification()[0]:\n ...@@ -131,12 +129,25 @@ if line_letter != dest.getCodification()[0]:\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <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> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -147,7 +158,7 @@ if line_letter != dest.getCodification()[0]:\n ...@@ -147,7 +158,7 @@ if line_letter != dest.getCodification()[0]:\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple/> <none/>
</value> </value>
</item> </item>
<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