diff --git a/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_validation_workflow/scripts/checkConsistency.xml b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_validation_workflow/scripts/checkConsistency.xml index 9d6aa215ac8860283af6d355870a56089f199b62..c4800adc9bb4fa85fab39151b232fdde42bd39a7 100644 --- a/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_validation_workflow/scripts/checkConsistency.xml +++ b/bt5/erp5_dms/WorkflowTemplateItem/portal_workflow/document_validation_workflow/scripts/checkConsistency.xml @@ -72,15 +72,11 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n object = state_change[\'object\']\n -N_ = object.Base_translateString\n \n check_result = object.checkConsistency()\n -context.log(check_result)\n if len(check_result) > 0:\n - check_type = N_(check_result[0][-1])\n - # TODO: use nice url encoding method there instead of replace()\n - check_details = str(check_result[0][-2]).replace(\'<\', \'<\').replace(\'>\', \'>\')\n - raise ValidationFailed, "%s : %s" % (check_type, check_details)\n + cr=check_result[0]\n + raise ValidationFailed, "%s : %s" % (cr.message,cr.description)\n ]]></string> </value> @@ -131,13 +127,9 @@ if len(check_result) > 0:\n <string>_getitem_</string> <string>object</string> <string>_getattr_</string> - <string>N_</string> <string>check_result</string> - <string>context</string> <string>len</string> - <string>check_type</string> - <string>str</string> - <string>check_details</string> + <string>cr</string> </tuple> </value> </item> diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision index 8d4011ad25d82168b3b8377030f4c232fe2a4118..5e801cee880d1bdf4d33a876b8bb09b3d231da22 100644 --- a/bt5/erp5_dms/bt/revision +++ b/bt5/erp5_dms/bt/revision @@ -1 +1 @@ -412 \ No newline at end of file +416 \ No newline at end of file diff --git a/bt5/erp5_dms/bt/version b/bt5/erp5_dms/bt/version index 8f83716e76185a27e0be3a6e448c00bcd0bde671..72ed14beb6cf039fdaf996aad22b3ead30942c93 100644 --- a/bt5/erp5_dms/bt/version +++ b/bt5/erp5_dms/bt/version @@ -1 +1 @@ -0.82 \ No newline at end of file +0.83 \ No newline at end of file