[Erp5-report] r18218 - in /erp5/trunk/bt5/erp5_accounting: WorkflowTemplateItem/portal_work...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Dec 10 19:01:15 CET 2007


Author: jerome
Date: Mon Dec 10 19:01:14 2007
New Revision: 18218

URL: http://svn.erp5.org?rev=18218&view=rev
Log:
account workflow is now using constraints

Added:
    erp5/trunk/bt5/erp5_accounting/bt/template_catalog_datetime_key_list
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=18218&r1=18217&r2=18218&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 Mon Dec 10 19:01:14 2007
@@ -65,23 +65,7 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
-from Products.ERP5Type.Message import Message\n
-\n
-account = sci[\'object\']\n
-N_ = lambda msgid: Message(\'erp5_ui\', msgid)\n
-\n
-# TODO: use constraint for this\n
-if not account.getGap():\n
-  raise ValidationFailed(N_("GAP is unset."))\n
-\n
-for err in account.checkConsistency():\n
-  if hasattr(err, \'getTranslatedMessage\'):\n
-    raise ValidationFailed(err.getTranslatedMessage())\n
-  # Old constraints implementation doesn\'t have a translated message,\n
-  # in this case, simply translate the description of the constraint in\n
-  # the property sheet.\n
-  raise ValidationFailed(N_(err[4]))\n
+            <value> <string>sci[\'object\'].Base_checkConsistency()\n
 </string> </value>
         </item>
         <item>
@@ -125,17 +109,8 @@
                         <value>
                           <tuple>
                             <string>sci</string>
-                            <string>Products.DCWorkflow.DCWorkflow</string>
-                            <string>ValidationFailed</string>
-                            <string>Products.ERP5Type.Message</string>
-                            <string>Message</string>
+                            <string>_getattr_</string>
                             <string>_getitem_</string>
-                            <string>account</string>
-                            <string>N_</string>
-                            <string>_getattr_</string>
-                            <string>_getiter_</string>
-                            <string>err</string>
-                            <string>hasattr</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=18218&r1=18217&r2=18218&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Mon Dec 10 19:01:14 2007
@@ -1,1 +1,1 @@
-523
+525

Added: erp5/trunk/bt5/erp5_accounting/bt/template_catalog_datetime_key_list
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/template_catalog_datetime_key_list?rev=18218&view=auto
==============================================================================
    (empty)




More information about the Erp5-report mailing list