From d45e0dd1769c7e57aedd44501398394c5cc539da Mon Sep 17 00:00:00 2001 From: Kevin Deldycke <kevin@nexedi.com> Date: Thu, 30 Mar 2006 23:54:58 +0000 Subject: [PATCH] Mark as deprecaded. Advise developpers to use Base_getRoundValue / Base_getPreferredPrecision instead. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6390 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_accounting/ERP5Accounting_FormatMonetaryValue.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/ERP5Accounting_FormatMonetaryValue.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/ERP5Accounting_FormatMonetaryValue.xml index f9fa5e037d..bde462ee7c 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/ERP5Accounting_FormatMonetaryValue.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/ERP5Accounting_FormatMonetaryValue.xml @@ -75,6 +75,9 @@ Needs reflexion / reimplementation for example for the \'precision\' \n parameter, which is related to the currency.\n """\n \n +context.log( "ERP5Accounting_FormatMonetaryValue is DEPRECATED."\n + , \'It break naming convention and will be removed, please use Base_getRoundValue (sometimes in combination with Base_getPreferredPrecision) instead.\')\n +\n # XXX copy & pasted code ...\n value = str(value)\n if \'.\' in value :\n @@ -143,8 +146,9 @@ return formatted_value\n <string>value</string> <string>nbsp</string> <string>precision</string> - <string>str</string> <string>_getattr_</string> + <string>context</string> + <string>str</string> <string>_getiter_</string> <string>integer</string> <string>reminder</string> -- 2.30.9