[Erp5-report] r12643 - in /erp5/trunk/bt5/erp5_accounting: WorkflowTemplateItem/portal_work...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 13 11:25:18 CET 2007
Author: jerome
Date: Tue Feb 13 11:25:15 2007
New Revision: 12643
URL: http://svn.erp5.org?rev=12643&view=rev
Log:
check consistency using constraints when validating an account
Modified:
erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/account_workflow/scripts/Account_Validate.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/account_workflow/scripts/Account_Validate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/account_workflow/scripts/Account_Validate.xml?rev=12643&r1=12642&r2=12643&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/account_workflow/scripts/Account_Validate.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/account_workflow/scripts/Account_Validate.xml Tue Feb 13 11:25:15 2007
@@ -72,10 +72,13 @@
from Products.ERP5Type.Message import Message\n
\n
account = sci[\'object\']\n
-N_ = lambda msgid: Message(\'erp5_uid\', msgid)\n
+N_ = lambda msgid: Message(\'erp5_ui\', msgid)\n
\n
-if account.getGap() in (None, \'\') : \n
+if not account.getGap():\n
raise ValidationFailed(N_("GAP is unset."))\n
+\n
+for err in account.checkConsistency():\n
+ raise ValidationFailed(N(err[4]))\n
</string> </value>
</item>
<item>
@@ -127,7 +130,9 @@
<string>account</string>
<string>N_</string>
<string>_getattr_</string>
- <string>None</string>
+ <string>_getiter_</string>
+ <string>err</string>
+ <string>N</string>
</tuple>
</value>
</item>
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=12643&r1=12642&r2=12643&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Tue Feb 13 11:25:15 2007
@@ -1,1 +1,1 @@
-178
+181
More information about the Erp5-report
mailing list