From 1d251d302d918e31c90494fa7ffd4bcc57e8c4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 31 Jan 2013 16:48:26 +0100 Subject: [PATCH] Remove long deprecated script InvoiceTransactionLine_getSourceItemList And replace is uses by AccountingTransactionLine_getNodeItemList --- .../portal_skins/erp5_accounting_bbb.xml | 26 ------- .../Base_callDeprecatedMethod.xml | 70 ------------------- ...voiceTransactionLine_getSourceItemList.xml | 70 ------------------- bt5/erp5_accounting/bt/revision | 2 +- bt5/erp5_accounting/bt/template_skin_id_list | 3 +- .../listbox_source.xml | 2 +- .../listbox_source.xml | 2 +- .../listbox_source.xml | 2 +- bt5/erp5_banking_cash/bt/revision | 2 +- .../listbox_source.xml | 2 +- .../listbox_source.xml | 2 +- bt5/erp5_banking_check/bt/revision | 2 +- .../listbox_source.xml | 2 +- bt5/erp5_banking_core/bt/revision | 2 +- ...mortisation_transaction_listbox_source.xml | 2 +- bt5/erp5_immobilisation/bt/revision | 2 +- 16 files changed, 13 insertions(+), 180 deletions(-) delete mode 100644 bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb.xml delete mode 100644 bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb/Base_callDeprecatedMethod.xml delete mode 100644 bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb/InvoiceTransactionLine_getSourceItemList.xml diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb.xml deleted file mode 100644 index 5681125c8f..0000000000 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="Folder" module="OFS.Folder"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_objects</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>erp5_accounting_bbb</string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb/Base_callDeprecatedMethod.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb/Base_callDeprecatedMethod.xml deleted file mode 100644 index 4b0b6ab468..0000000000 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb/Base_callDeprecatedMethod.xml +++ /dev/null @@ -1,70 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>_bind_names</string> </key> - <value> - <object> - <klass> - <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>_asgns</string> </key> - <value> - <dictionary> - <item> - <key> <string>name_container</string> </key> - <value> <string>container</string> </value> - </item> - <item> - <key> <string>name_context</string> </key> - <value> <string>context</string> </value> - </item> - <item> - <key> <string>name_m_self</string> </key> - <value> <string>script</string> </value> - </item> - <item> - <key> <string>name_subpath</string> </key> - <value> <string>traverse_subpath</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>_body</string> </key> - <value> <string>context.log(old_method_name, \'%s is deprecated, use %s instead\'\n - % (old_method_name, new_method_name))\n -\n -return getattr(context, new_method_name)(*args, **kw)\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>old_method_name, new_method_name, *args, **kw</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Base_callDeprecatedMethod</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb/InvoiceTransactionLine_getSourceItemList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb/InvoiceTransactionLine_getSourceItemList.xml deleted file mode 100644 index 638f44a089..0000000000 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting_bbb/InvoiceTransactionLine_getSourceItemList.xml +++ /dev/null @@ -1,70 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>_bind_names</string> </key> - <value> - <object> - <klass> - <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>_asgns</string> </key> - <value> - <dictionary> - <item> - <key> <string>name_container</string> </key> - <value> <string>container</string> </value> - </item> - <item> - <key> <string>name_context</string> </key> - <value> <string>context</string> </value> - </item> - <item> - <key> <string>name_m_self</string> </key> - <value> <string>script</string> </value> - </item> - <item> - <key> <string>name_subpath</string> </key> - <value> <string>traverse_subpath</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>_body</string> </key> - <value> <string>context.log(\'erp5_accounting\',\n - \'InvoiceTransactionLine_getSourceItemList is a deprecated compatibility\'\n - \' alias to AccountingTransactionLine_getNodeItemList()\')\n -return context.AccountingTransactionLine_getNodeItemList()\n -</string> </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>category_dict=None, caching_method_id=\'InvoiceTransactionLine_getSourceItemList\'</string> </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>InvoiceTransactionLine_getSourceItemList</string> </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index ecbf604f8e..00b89bd1f8 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1513 +1514 diff --git a/bt5/erp5_accounting/bt/template_skin_id_list b/bt5/erp5_accounting/bt/template_skin_id_list index a0e7f490c0..61379c0880 100644 --- a/bt5/erp5_accounting/bt/template_skin_id_list +++ b/bt5/erp5_accounting/bt/template_skin_id_list @@ -1,2 +1 @@ -erp5_accounting -erp5_accounting_bbb \ No newline at end of file +erp5_accounting \ No newline at end of file diff --git a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyDeposit_viewAccounting/listbox_source.xml b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyDeposit_viewAccounting/listbox_source.xml index 8e58d05784..0ce675d161 100644 --- a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyDeposit_viewAccounting/listbox_source.xml +++ b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyDeposit_viewAccounting/listbox_source.xml @@ -275,7 +275,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:cell.getObject().InvoiceTransactionLine_getSourceItemList()</string> </value> + <value> <string>python:cell.getObject().AccountingTransactionLine_getNodeItemList()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyPayment_viewAccounting/listbox_source.xml b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyPayment_viewAccounting/listbox_source.xml index 8e58d05784..0ce675d161 100644 --- a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyPayment_viewAccounting/listbox_source.xml +++ b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/InternalMoneyPayment_viewAccounting/listbox_source.xml @@ -275,7 +275,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:cell.getObject().InvoiceTransactionLine_getSourceItemList()</string> </value> + <value> <string>python:cell.getObject().AccountingTransactionLine_getNodeItemList()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/MoneyDeposit_viewAccounting/listbox_source.xml b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/MoneyDeposit_viewAccounting/listbox_source.xml index 8e58d05784..0ce675d161 100644 --- a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/MoneyDeposit_viewAccounting/listbox_source.xml +++ b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/MoneyDeposit_viewAccounting/listbox_source.xml @@ -275,7 +275,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:cell.getObject().InvoiceTransactionLine_getSourceItemList()</string> </value> + <value> <string>python:cell.getObject().AccountingTransactionLine_getNodeItemList()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_cash/bt/revision b/bt5/erp5_banking_cash/bt/revision index 3873f56298..e8f7ef6cfa 100644 --- a/bt5/erp5_banking_cash/bt/revision +++ b/bt5/erp5_banking_cash/bt/revision @@ -1 +1 @@ -706 \ No newline at end of file +707 \ No newline at end of file diff --git a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDeposit_viewAccounting/listbox_source.xml b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDeposit_viewAccounting/listbox_source.xml index c402363741..63b2801661 100644 --- a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDeposit_viewAccounting/listbox_source.xml +++ b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDeposit_viewAccounting/listbox_source.xml @@ -275,7 +275,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:cell.getObject().InvoiceTransactionLine_getSourceItemList()</string> </value> + <value> <string>python:cell.getObject().AccountingTransactionLine_getNodeItemList()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckPayment_viewAccounting/listbox_source.xml b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckPayment_viewAccounting/listbox_source.xml index 8e58d05784..0ce675d161 100644 --- a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckPayment_viewAccounting/listbox_source.xml +++ b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckPayment_viewAccounting/listbox_source.xml @@ -275,7 +275,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:cell.getObject().InvoiceTransactionLine_getSourceItemList()</string> </value> + <value> <string>python:cell.getObject().AccountingTransactionLine_getNodeItemList()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_check/bt/revision b/bt5/erp5_banking_check/bt/revision index f35d9602e1..9889789bab 100644 --- a/bt5/erp5_banking_check/bt/revision +++ b/bt5/erp5_banking_check/bt/revision @@ -1 +1 @@ -498 \ No newline at end of file +499 \ No newline at end of file diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Delivery_viewAccounting/listbox_source.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Delivery_viewAccounting/listbox_source.xml index 8e58d05784..0ce675d161 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Delivery_viewAccounting/listbox_source.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Delivery_viewAccounting/listbox_source.xml @@ -275,7 +275,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:cell.getObject().InvoiceTransactionLine_getSourceItemList()</string> </value> + <value> <string>python:cell.getObject().AccountingTransactionLine_getNodeItemList()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision index 2550c37fd0..6a3a7891aa 100644 --- a/bt5/erp5_banking_core/bt/revision +++ b/bt5/erp5_banking_core/bt/revision @@ -1 +1 @@ -586 +587 \ No newline at end of file diff --git a/bt5/erp5_immobilisation/SkinTemplateItem/portal_skins/erp5_immobilisation/Base_viewImmobilisationFieldLibrary/amortisation_transaction_listbox_source.xml b/bt5/erp5_immobilisation/SkinTemplateItem/portal_skins/erp5_immobilisation/Base_viewImmobilisationFieldLibrary/amortisation_transaction_listbox_source.xml index f9793ca570..c558a4e7a7 100644 --- a/bt5/erp5_immobilisation/SkinTemplateItem/portal_skins/erp5_immobilisation/Base_viewImmobilisationFieldLibrary/amortisation_transaction_listbox_source.xml +++ b/bt5/erp5_immobilisation/SkinTemplateItem/portal_skins/erp5_immobilisation/Base_viewImmobilisationFieldLibrary/amortisation_transaction_listbox_source.xml @@ -116,7 +116,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:cell.getObject().InvoiceTransactionLine_getSourceItemList()</string> </value> + <value> <string>python:cell.getObject().AccountingTransactionLine_getNodeItemList()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_immobilisation/bt/revision b/bt5/erp5_immobilisation/bt/revision index a5b5e0f805..cd004727f2 100644 --- a/bt5/erp5_immobilisation/bt/revision +++ b/bt5/erp5_immobilisation/bt/revision @@ -1 +1 @@ -181 \ No newline at end of file +182 \ No newline at end of file -- 2.30.9