Commit f650ffb2 authored by Jérome Perrin's avatar Jérome Perrin

Add deprecation warnings



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10976 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f4b95ba3
......@@ -68,7 +68,10 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>params = {}\n
<value> <string>context.log(\'erp5_account\', \'%s is deprecated, use %s instead\'\n
% (script.getId(), \'Account_statBalance\'))\n
\n
params = {}\n
pref = context.getPortalObject().portal_preferences\n
precision = context.Base_getPreferredPrecision()\n
\n
......@@ -219,6 +222,12 @@ return context.Base_getRoundValue(row.total_price or 0.0, precision)\n
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>selection, **kw</string> </value>
......@@ -257,9 +266,10 @@ return context.Base_getRoundValue(row.total_price or 0.0, precision)\n
<tuple>
<string>selection</string>
<string>kw</string>
<string>params</string>
<string>_getattr_</string>
<string>context</string>
<string>script</string>
<string>params</string>
<string>pref</string>
<string>precision</string>
<string>None</string>
......
......@@ -68,7 +68,9 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return - context.Account_statSourceBalance(omit_output=1, **kw) or 0.0\n
<value> <string>context.log(\'erp5_account\', \'%s is deprecated, use %s instead\'\n
% (script.getId(), \'Account_statCredit\'))\n
return - context.Account_statSourceBalance(omit_output=1, **kw) or 0.0\n
</string> </value>
</item>
<item>
......@@ -89,6 +91,12 @@
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
......@@ -126,9 +134,10 @@
<value>
<tuple>
<string>kw</string>
<string>_apply_</string>
<string>_getattr_</string>
<string>context</string>
<string>script</string>
<string>_apply_</string>
</tuple>
</value>
</item>
......
......@@ -68,7 +68,9 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>return context.Account_statSourceBalance(omit_input=1, **kw) or 0.0\n
<value> <string>context.log(\'erp5_account\', \'%s is deprecated, use %s instead\'\n
% (script.getId(), \'Account_statDebit\'))\n
return context.Account_statSourceBalance(omit_input=1, **kw) or 0.0\n
</string> </value>
</item>
<item>
......@@ -83,6 +85,12 @@
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
......@@ -120,9 +128,10 @@
<value>
<tuple>
<string>kw</string>
<string>_apply_</string>
<string>_getattr_</string>
<string>context</string>
<string>script</string>
<string>_apply_</string>
</tuple>
</value>
</item>
......
......@@ -159,23 +159,23 @@
<key> <string>_keys</string> </key>
<value>
<list>
<string>selection</string>
<string>selection_domain</string>
<string>selection_report</string>
<string>node_uid</string>
<string>where_expression</string>
<string>omit_input</string>
<string>omit_output</string>
<string>resource_uid</string>
<string>from_date</string>
<string>to_date</string>
<string>at_date</string>
<string>simulation_state</string>
<string>section_category</string>
<string>payment_uid</string>
<string>no_payment_uid</string>
<string>mirror_section_uid</string>
<string>no_mirror_section_uid</string>
<string>selection</string>
<string>selection_domain</string>
<string>selection_report</string>
<string>node_uid</string>
<string>where_expression</string>
<string>omit_input</string>
<string>omit_output</string>
<string>resource_uid</string>
<string>from_date</string>
<string>to_date</string>
<string>at_date</string>
<string>simulation_state</string>
<string>section_category</string>
<string>payment_uid</string>
<string>no_payment_uid</string>
<string>mirror_section_uid</string>
<string>no_mirror_section_uid</string>
</list>
</value>
</item>
......@@ -196,6 +196,12 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>allow_simple_one_argument_traversal</string> </key>
<value>
......@@ -260,6 +266,7 @@ no_mirror_section_uid</string> </value>
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-call "log(\'Account_zGetAccountingTransactionList is deprecated, use Inventory API instead\')>\n
<dtml-if node_uid>\n
SELECT\n
DISTINCT transaction.uid, transaction.path,\n
......@@ -403,6 +410,7 @@ ORDER BY\n
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-call "log(\'Account_zGetAccountingTransactionList is deprecated, use Inventory API instead\')>\n
<dtml-if node_uid>\n
SELECT\n
DISTINCT transaction.uid, transaction.path,\n
......
107
\ No newline at end of file
108
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment