From 4f2dcac61434770038ab74b2d55f9b1010fd8dc0 Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Tue, 15 Dec 2009 14:34:16 +0000 Subject: [PATCH] add Dict Divergence Tester. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31314 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../configuration.xml | 93 +++++++++++++++++++ .../Dict%20Divergence%20Tester/predicate.xml | 93 +++++++++++++++++++ .../Dict%20Divergence%20Tester/view.xml | 85 +++++++++++++++++ .../allowed_content_types.xml | 1 + .../Dict%20Divergence%20Tester.xml | 67 +++++++++++++ .../workflow_chain_type.xml | 4 + .../bt/template_action_path_list | 3 + ...late_portal_type_allowed_content_type_list | 1 + .../bt/template_portal_type_id_list | 1 + .../template_portal_type_workflow_chain_list | 1 + 10 files changed, 349 insertions(+) create mode 100644 bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/configuration.xml create mode 100644 bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/predicate.xml create mode 100644 bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/view.xml create mode 100644 bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Dict%20Divergence%20Tester.xml diff --git a/bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/configuration.xml b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/configuration.xml new file mode 100644 index 0000000000..9f51c83647 --- /dev/null +++ b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/configuration.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type/object_view</string> + <string>portal_types/Trade Quantity Divergence Tester/1</string> + <string>portal_types/Float Divergence Tester/2</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>configuration</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>2.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Configuration</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/StringDivergenceTester_viewConfiguration</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/predicate.xml b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/predicate.xml new file mode 100644 index 0000000000..d7b5460d26 --- /dev/null +++ b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/predicate.xml @@ -0,0 +1,93 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type/object_view</string> + <string>portal_types/Trade Quantity Divergence Tester/1</string> + <string>portal_types/Float Divergence Tester/3</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>predicate</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>3.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Predicate</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Predicate_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/view.xml b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/view.xml new file mode 100644 index 0000000000..4e3cfe9166 --- /dev/null +++ b/bt5/erp5_simulation/ActionTemplateItem/portal_types/Dict%20Divergence%20Tester/view.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type/object_view</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>View</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <global name="Expression" module="Products.CMFCore.Expression"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/PropertyDivergenceTester_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_simulation/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index afdb134ae7..af1a6deded 100644 --- a/bt5/erp5_simulation/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_simulation/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -2,6 +2,7 @@ <portal_type id="New Order Rule"> <item>Category Membership Divergence Tester</item> <item>DateTime Divergence Tester</item> + <item>Dict Divergence Tester</item> <item>Float Divergence Tester</item> <item>String Divergence Tester</item> </portal_type> diff --git a/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Dict%20Divergence%20Tester.xml b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Dict%20Divergence%20Tester.xml new file mode 100644 index 0000000000..c30a01a4ce --- /dev/null +++ b/bt5/erp5_simulation/PortalTypeTemplateItem/portal_types/Dict%20Divergence%20Tester.xml @@ -0,0 +1,67 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ERP5TypeInformation" module="Products.ERP5Type.ERP5Type"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>acquire_local_roles</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>content_icon</string> </key> + <value> <string>document.gif</string> </value> + </item> + <item> + <key> <string>content_meta_type</string> </key> + <value> <string>ERP5 Divergence Tester</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Dict Divergence Testers can be used to test divergence of dict properties, with configuration caps equivalences. All configuration properties of divergence testers are stored at instance level in order to simplify their historization at rule level.</string> </value> + </item> + <item> + <key> <string>factory</string> </key> + <value> <string>addDictDivergenceTester</string> </value> + </item> + <item> + <key> <string>filter_content_types</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <tuple> + <string>divergence_tester</string> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Dict Divergence Tester</string> </value> + </item> + <item> + <key> <string>init_script</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>permission</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_simulation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index 840ffa15d8..916d351a10 100644 --- a/bt5/erp5_simulation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_simulation/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -7,6 +7,10 @@ <type>DateTime Divergence Tester</type> <workflow>edit_workflow</workflow> </chain> + <chain> + <type>Dict Divergence Tester</type> + <workflow>edit_workflow</workflow> + </chain> <chain> <type>Float Divergence Tester</type> <workflow>edit_workflow</workflow> diff --git a/bt5/erp5_simulation/bt/template_action_path_list b/bt5/erp5_simulation/bt/template_action_path_list index c6c0d6f256..3af1c337f2 100644 --- a/bt5/erp5_simulation/bt/template_action_path_list +++ b/bt5/erp5_simulation/bt/template_action_path_list @@ -4,6 +4,9 @@ Category Membership Divergence Tester | view DateTime Divergence Tester | configuration DateTime Divergence Tester | predicate DateTime Divergence Tester | view +Dict Divergence Tester | configuration +Dict Divergence Tester | predicate +Dict Divergence Tester | view Float Divergence Tester | configuration Float Divergence Tester | predicate Float Divergence Tester | view diff --git a/bt5/erp5_simulation/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_simulation/bt/template_portal_type_allowed_content_type_list index 02af97ff1c..264470afe8 100644 --- a/bt5/erp5_simulation/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_simulation/bt/template_portal_type_allowed_content_type_list @@ -1,5 +1,6 @@ New Order Rule | Category Membership Divergence Tester New Order Rule | DateTime Divergence Tester +New Order Rule | Dict Divergence Tester New Order Rule | Float Divergence Tester New Order Rule | String Divergence Tester Rule Tool | New Order Rule diff --git a/bt5/erp5_simulation/bt/template_portal_type_id_list b/bt5/erp5_simulation/bt/template_portal_type_id_list index b369dea0d4..c52a0f4e3c 100644 --- a/bt5/erp5_simulation/bt/template_portal_type_id_list +++ b/bt5/erp5_simulation/bt/template_portal_type_id_list @@ -1,5 +1,6 @@ Category Membership Divergence Tester DateTime Divergence Tester +Dict Divergence Tester Float Divergence Tester New Order Rule Production Reduction Solver diff --git a/bt5/erp5_simulation/bt/template_portal_type_workflow_chain_list b/bt5/erp5_simulation/bt/template_portal_type_workflow_chain_list index 1394376d3e..e8ab7067f9 100644 --- a/bt5/erp5_simulation/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_simulation/bt/template_portal_type_workflow_chain_list @@ -1,5 +1,6 @@ Category Membership Divergence Tester | edit_workflow DateTime Divergence Tester | edit_workflow +Dict Divergence Tester | edit_workflow Float Divergence Tester | edit_workflow New Order Rule | edit_workflow New Order Rule | rule_validation_workflow -- 2.30.9