From 50d417b2038f68665c918209d6d2baf64dcbffb7 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Thu, 23 Jul 2009 16:39:24 +0000 Subject: [PATCH] Replace Entity_getRelatedEventList as list method by Base_getRelatedObjectList remove Entity_getRelatedEventList and Entity_getRelatedTicketList TODO remove related_keys: - related_source_or_source_section_or_destination_or_destination_section - related_source_section_or_destination_section deprecated by this patch git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28170 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_crm/Entity_getRelatedEventList.xml | 129 ------------------ .../erp5_crm/Entity_getRelatedTicketList.xml | 129 ------------------ .../erp5_crm/Entity_viewEventList/listbox.xml | 16 +-- .../support_request_listbox.xml | 10 +- bt5/erp5_crm/bt/revision | 2 +- 5 files changed, 14 insertions(+), 272 deletions(-) delete mode 100644 bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_getRelatedEventList.xml delete mode 100644 bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_getRelatedTicketList.xml diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_getRelatedEventList.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_getRelatedEventList.xml deleted file mode 100644 index c3c0e35786..0000000000 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_getRelatedEventList.xml +++ /dev/null @@ -1,129 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - <tuple/> - </tuple> - </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>if context.getPortalType() == \'Organisation\':\n - kw[\'related_source_or_source_section_or_destination_or_destination_section\'] = [context.getUid()]\n -else:\n - kw[\'related_source_or_destination\'] = [context.getUid()]\n -return context.portal_catalog(**kw)\n -</string> </value> - </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>**kw</string> </value> - </item> - <item> - <key> <string>errors</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>func_code</string> </key> - <value> - <object> - <klass> - <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>co_argcount</string> </key> - <value> <int>0</int> </value> - </item> - <item> - <key> <string>co_varnames</string> </key> - <value> - <tuple> - <string>kw</string> - <string>_getattr_</string> - <string>context</string> - <string>_write_</string> - <string>_apply_</string> - </tuple> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>func_defaults</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Entity_getRelatedEventList</string> </value> - </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_getRelatedTicketList.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_getRelatedTicketList.xml deleted file mode 100644 index c862d18c19..0000000000 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_getRelatedTicketList.xml +++ /dev/null @@ -1,129 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> - <tuple/> - </tuple> - </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>if context.getPortalType() == \'Organisation\':\n - kw[\'related_source_section_or_destination_section\'] = [context.getUid()]\n -else:\n - kw[\'related_source_or_source_decision_or_destination_or_destination_decision\'] = [context.getUid()]\n -return context.portal_catalog(**kw)\n -</string> </value> - </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>**kw</string> </value> - </item> - <item> - <key> <string>errors</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>func_code</string> </key> - <value> - <object> - <klass> - <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>co_argcount</string> </key> - <value> <int>0</int> </value> - </item> - <item> - <key> <string>co_varnames</string> </key> - <value> - <tuple> - <string>kw</string> - <string>_getattr_</string> - <string>context</string> - <string>_write_</string> - <string>_apply_</string> - </tuple> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>func_defaults</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>Entity_getRelatedTicketList</string> </value> - </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_viewEventList/listbox.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_viewEventList/listbox.xml index 375641db93..c99e0ae94d 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_viewEventList/listbox.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_viewEventList/listbox.xml @@ -13,16 +13,16 @@ <key> <string>delegated_list</string> </key> <value> <list> - <string>title</string> - <string>columns</string> <string>all_columns</string> - <string>search_columns</string> - <string>sort_columns</string> - <string>sort</string> + <string>columns</string> + <string>editable_columns</string> <string>list_method</string> - <string>selection_name</string> <string>portal_types</string> - <string>editable_columns</string> + <string>search_columns</string> + <string>selection_name</string> + <string>sort</string> + <string>sort_columns</string> + <string>title</string> </list> </value> </item> @@ -316,7 +316,7 @@ <dictionary> <item> <key> <string>method_name</string> </key> - <value> <string>Entity_getRelatedEventList</string> </value> + <value> <string>Base_getRelatedObjectList</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_viewEventList/support_request_listbox.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_viewEventList/support_request_listbox.xml index 389c48363c..5670cb5549 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_viewEventList/support_request_listbox.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Entity_viewEventList/support_request_listbox.xml @@ -13,13 +13,13 @@ <key> <string>delegated_list</string> </key> <value> <list> - <string>title</string> <string>columns</string> - <string>sort</string> + <string>editable_columns</string> <string>list_method</string> - <string>selection_name</string> <string>portal_types</string> - <string>editable_columns</string> + <string>selection_name</string> + <string>sort</string> + <string>title</string> </list> </value> </item> @@ -199,7 +199,7 @@ <dictionary> <item> <key> <string>method_name</string> </key> - <value> <string>Entity_getRelatedTicketList</string> </value> + <value> <string>Base_getRelatedObjectList</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision index 97964b3fde..59b8937b62 100644 --- a/bt5/erp5_crm/bt/revision +++ b/bt5/erp5_crm/bt/revision @@ -1 +1 @@ -422 \ No newline at end of file +424 \ No newline at end of file -- 2.30.9