From 1b0f7388585778d17cc4639dc7c76a0f67370fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 27 Jan 2006 10:47:37 +0000 Subject: [PATCH] added a validator to make sure we do not have 2 currencies with the same reference git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5372 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_core/Currency_view/my_reference.xml | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Currency_view/my_reference.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Currency_view/my_reference.xml index c34712484f..6abe485414 100755 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Currency_view/my_reference.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Currency_view/my_reference.xml @@ -22,7 +22,7 @@ <dictionary> <item> <key> <string>external_validator_failed</string> </key> - <value> <string>The input failed the external validator.</string> </value> + <value> <string>Another currency already exists for this currency code.</string> </value> </item> <item> <key> <string>required_not_found</string> </key> @@ -223,7 +223,9 @@ </item> <item> <key> <string>external_validator</string> </key> - <value> <string></string> </value> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> </item> <item> <key> <string>extra</string> </key> @@ -263,4 +265,23 @@ </dictionary> </pickle> </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Products.Formulator.MethodField</string> + <string>Method</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>method_name</string> </key> + <value> <string>Base_uniqueReferenceInFolderValidator</string> </value> + </item> + </dictionary> + </pickle> + </record> </ZopeData> -- 2.30.9