Commit 48dcded0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* rename CategoryDivergenceTester to CategoryMembershipDivergenceTester to...

* rename CategoryDivergenceTester to CategoryMembershipDivergenceTester to avoid conflict with the existing divergence tester.
* add a configuration form for CategoryMembershipDivergenceTester.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30728 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8992b947
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>string:${object_url}/FloatDivergenceTester_viewConfiguration</string> </value> <value> <string>string:${object_url}/CategoryMembershipDivergenceTester_viewConfiguration</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
<value> <value>
<tuple> <tuple>
<string>action_type/object_view</string> <string>action_type/object_view</string>
<string>portal_types/Float Divergence Tester/1</string>
<string>portal_types/Float Divergence Tester/1</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -33,7 +35,9 @@ ...@@ -33,7 +35,9 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>icon</string> </key> <key> <string>icon</string> </key>
...@@ -51,6 +55,10 @@ ...@@ -51,6 +55,10 @@
</tuple> </tuple>
</value> </value>
</item> </item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Action Information</string> </value>
</item>
<item> <item>
<key> <string>priority</string> </key> <key> <string>priority</string> </key>
<value> <float>1.0</float> </value> <value> <float>1.0</float> </value>
...@@ -77,7 +85,7 @@ ...@@ -77,7 +85,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>string:${object_url}/PropertyDivergenceTester_view</string> </value> <value> <string>string:${object_url}/Tester_view</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -9,6 +9,25 @@ ...@@ -9,6 +9,25 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_property_domain_dict</string> </key>
<value>
<dictionary>
<item>
<key> <string>short_title</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
</dictionary>
</value>
</item>
<item> <item>
<key> <string>acquire_local_roles</string> </key> <key> <string>acquire_local_roles</string> </key>
<value> <int>1</int> </value> <value> <int>1</int> </value>
...@@ -23,11 +42,11 @@ ...@@ -23,11 +42,11 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>Category Divergence Testers can be used to test category divergence. Divergence testing can be configured to take into account parent / child membership. All configuration properties of divergence testers are stored at instance level in order to simplify their historization at rule level.</string> </value> <value> <string>Category Membership Divergence Testers can be used to test category memberships. All configuration properties of divergence testers are stored at instance level in order to simplify their historisation at rule level.</string> </value>
</item> </item>
<item> <item>
<key> <string>factory</string> </key> <key> <string>factory</string> </key>
<value> <string>addCategoryDivergenceTester</string> </value> <value> <string>addCategoryMembershipDivergenceTester</string> </value>
</item> </item>
<item> <item>
<key> <string>filter_content_types</string> </key> <key> <string>filter_content_types</string> </key>
...@@ -43,7 +62,7 @@ ...@@ -43,7 +62,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Category Divergence Tester</string> </value> <value> <string>Category Membership Divergence Tester</string> </value>
</item> </item>
<item> <item>
<key> <string>init_script</string> </key> <key> <string>init_script</string> </key>
...@@ -64,4 +83,44 @@ ...@@ -64,4 +83,44 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>domain_name</string> </key>
<value> <string>erp5_content</string> </value>
</item>
<item>
<key> <string>property_name</string> </key>
<value> <string>short_title</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TranslationInformation" module="Products.ERP5Type.TranslationProviderBase"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>domain_name</string> </key>
<value> <string>erp5_content</string> </value>
</item>
<item>
<key> <string>property_name</string> </key>
<value> <string>title</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
<workflow_chain> <workflow_chain>
<chain> <chain>
<type>Category Divergence Tester</type> <type>Category Membership Divergence Tester</type>
<workflow>edit_workflow</workflow> <workflow>edit_workflow</workflow>
</chain> </chain>
<chain> <chain>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>Base_edit</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>my_tested_property</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>CategoryMembershipDivergenceTester_viewConfiguration</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>TesterType_view</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_view</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Tester Configuration</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>update_action_title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
16 17
\ No newline at end of file \ No newline at end of file
Category Divergence Tester | configuration Category Membership Divergence Tester | configuration
Category Divergence Tester | predicate Category Membership Divergence Tester | predicate
Category Divergence Tester | view Category Membership Divergence Tester | view
Float Divergence Tester | configuration Float Divergence Tester | configuration
Float Divergence Tester | predicate Float Divergence Tester | predicate
Float Divergence Tester | view Float Divergence Tester | view
......
Category Divergence Tester Category Membership Divergence Tester
Float Divergence Tester Float Divergence Tester
Production Reduction Solver Production Reduction Solver
Quantity Cancel Solver Quantity Cancel Solver
......
Category Divergence Tester | edit_workflow Category Membership Divergence Tester | edit_workflow
Category Divergence Tester | edit_workflow
Float Divergence Tester | edit_workflow Float Divergence Tester | edit_workflow
String Divergence Tester | edit_workflow String Divergence Tester | edit_workflow
\ 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