[Erp5-report] r14428 - in /erp5/trunk/bt5/erp5_banking_check: WorkflowTemplateItem/portal_w...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 9 10:52:09 CEST 2007
Author: vincent
Date: Wed May 9 10:52:09 2007
New Revision: 14428
URL: http://svn.erp5.org?rev=14428&view=rev
Log:
Fix a missing import and a misspelled exception.
Modified:
erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/updateBankingOperation.xml
erp5/trunk/bt5/erp5_banking_check/bt/revision
Modified: erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/updateBankingOperation.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/updateBankingOperation.xml?rev=14428&r1=14427&r2=14428&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/updateBankingOperation.xml (original)
+++ erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_payment_workflow/scripts/updateBankingOperation.xml Wed May 9 10:52:09 2007
@@ -67,6 +67,7 @@
<key> <string>_body</string> </key>
<value> <string># Note: this script is executed with the proxy role Manager, because this script needs\n
# to use checkbook_module.\n
+from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\n
\n
transaction = state_change[\'object\']\n
@@ -76,7 +77,7 @@
\n
check = transaction.Base_checkOrCreateCheck(reference=check_number)\n
if not check.Check_isValid():\n
- raise ValidationError, Message(domain=\'ui\', message=\'Check is in an invalid state\')\n
+ raise ValidationFailed, Message(domain=\'ui\', message=\'Check is in an invalid state\')\n
\n
line = transaction.get(\'movement\')\n
if line is not None and line.getPortalType() == \'Banking Operation Line\':\n
@@ -141,6 +142,8 @@
<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>
@@ -149,7 +152,6 @@
<string>bank_account</string>
<string>check_number</string>
<string>check</string>
- <string>ValidationError</string>
<string>line</string>
<string>None</string>
</tuple>
Modified: erp5/trunk/bt5/erp5_banking_check/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_check/bt/revision?rev=14428&r1=14427&r2=14428&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_check/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_check/bt/revision Wed May 9 10:52:09 2007
@@ -1,1 +1,1 @@
-186
+187
More information about the Erp5-report
mailing list