From c0ad55a798e4b4531702766464c6e44a0feb49c3 Mon Sep 17 00:00:00 2001 From: Wenjie Zheng <wenjie.zheng@tiolive.com> Date: Tue, 31 Mar 2015 09:11:44 +0000 Subject: [PATCH] erp5_workflow_test_data: modify interaction_view (filter list, script list) and InteractionWorkflow_viewInteractionList (add shown field, URL column). --- ...nteractionWorkflow_viewInteractionList.xml | 8 +- .../erp5_workflow/Interaction_view.xml | 4 +- .../my_activate_script_name.xml | 2 +- .../Interaction_view/my_after_script_name.xml | 2 +- .../my_before_commit_script_name.xml | 2 +- .../my_portal_type_filter_list.xml | 126 ++++++++++++++++++ .../my_portal_type_group_filter_list.xml | 126 ++++++++++++++++++ 7 files changed, 262 insertions(+), 8 deletions(-) create mode 100644 bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_portal_type_filter_list.xml create mode 100644 bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_portal_type_group_filter_list.xml diff --git a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/InteractionWorkflow_viewInteractionList.xml b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/InteractionWorkflow_viewInteractionList.xml index 68b973597bd..c1fa0e06125 100644 --- a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/InteractionWorkflow_viewInteractionList.xml +++ b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/InteractionWorkflow_viewInteractionList.xml @@ -53,7 +53,9 @@ <item> <key> <string>bottom</string> </key> <value> - <list/> + <list> + <string>listbox</string> + </list> </value> </item> <item> @@ -73,9 +75,7 @@ <item> <key> <string>left</string> </key> <value> - <list> - <string>listbox</string> - </list> + <list/> </value> </item> <item> diff --git a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view.xml b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view.xml index 45492a3176b..1ff8ceea757 100644 --- a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view.xml +++ b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view.xml @@ -76,10 +76,12 @@ <string>my_title</string> <string>my_description</string> <string>my_trigger_method_id</string> + <string>my_portal_type_filter_list</string> + <string>my_portal_type_group_filter_list</string> <string>my_trigger_once_per_transaction</string> <string>my_temporary_document_disallowed</string> - <string>my_after_script_name</string> <string>my_before_script_name</string> + <string>my_after_script_name</string> <string>my_before_commit_script_name</string> <string>my_activate_script_name</string> </list> diff --git a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_activate_script_name.xml b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_activate_script_name.xml index 3d1896a0382..c506484aa87 100644 --- a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_activate_script_name.xml +++ b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_activate_script_name.xml @@ -118,7 +118,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: [(x.getId(), x.getId()) for x in here.getParent().contentValues(portal_type=\'Workflow Script\') and here.getParent().objectValues(id=here.getDestinationTitle())]</string> </value> + <value> <string>python: [(x.getId(), x.getId()) for x in here.getParent().contentValues(portal_type=\'Workflow Script\')]</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_after_script_name.xml b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_after_script_name.xml index aaa7c569fe9..a776a14fd3e 100644 --- a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_after_script_name.xml +++ b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_after_script_name.xml @@ -118,7 +118,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: [(x.getId(), x.getId()) for x in here.getParent().contentValues(portal_type=\'Workflow Script\') and here.getParent().objectValues(id=here.getDestinationTitle())]</string> </value> + <value> <string>python: [(x.getId(), x.getId()) for x in here.getParent().contentValues(portal_type=\'Workflow Script\')]</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_before_commit_script_name.xml b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_before_commit_script_name.xml index 4221d8bc061..05233db12df 100644 --- a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_before_commit_script_name.xml +++ b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_before_commit_script_name.xml @@ -118,7 +118,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: [(x.getId(), x.getId()) for x in here.getParent().contentValues(portal_type=\'Workflow Script\') and here.getParent().objectValues(id=here.getDestinationTitle())]</string> </value> + <value> <string>python: [(x.getId(), x.getId()) for x in here.getParent().contentValues(portal_type=\'Workflow Script\')]</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_portal_type_filter_list.xml b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_portal_type_filter_list.xml new file mode 100644 index 00000000000..cc76e4533a5 --- /dev/null +++ b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_portal_type_filter_list.xml @@ -0,0 +1,126 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_portal_type_filter_list</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_parallel_list_field</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Portal type filter</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x.getId(), x.getId()) for x in here.getPortalObject().portal_types.objectValues()]</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_portal_type_group_filter_list.xml b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_portal_type_group_filter_list.xml new file mode 100644 index 00000000000..56ebfb53cb7 --- /dev/null +++ b/bt5/erp5_workflow_test_data/SkinTemplateItem/portal_skins/erp5_workflow/Interaction_view/my_portal_type_group_filter_list.xml @@ -0,0 +1,126 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ProxyField" module="Products.ERP5Form.ProxyField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>delegated_list</string> </key> + <value> + <list> + <string>items</string> + <string>title</string> + </list> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>my_portal_type_group_filter_list</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>field_id</string> </key> + <value> <string>my_parallel_list_field</string> </value> + </item> + <item> + <key> <string>form_id</string> </key> + <value> <string>Base_viewFieldLibrary</string> </value> + </item> + <item> + <key> <string>items</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>target</string> </key> + <value> <string>Click to edit the target</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Portal type group filter</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_text</string> </key> + <value> <string>python: [(x, x) for x in here.getPortalObject().portal_types[\'Base Type\'].getAvailableGroupList()]</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> -- 2.30.9