From 5f7772c5d05b1cc50a9e1f96e9964842c6c708f2 Mon Sep 17 00:00:00 2001 From: Leonardo Rochael Almeida <leonardo@nexedi.com> Date: Fri, 28 Oct 2011 18:11:25 +0200 Subject: [PATCH] Add a Predicate tab to all portal rules --- .../portal_actions/rule_predicate_view.xml | 86 +++++++++++++++++++ bt5/erp5_simulation/bt/revision | 2 +- .../bt/template_action_path_list | 3 +- 3 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_simulation/ActionTemplateItem/portal_types/portal_actions/rule_predicate_view.xml diff --git a/bt5/erp5_simulation/ActionTemplateItem/portal_types/portal_actions/rule_predicate_view.xml b/bt5/erp5_simulation/ActionTemplateItem/portal_types/portal_actions/rule_predicate_view.xml new file mode 100644 index 0000000000..27641443a9 --- /dev/null +++ b/bt5/erp5_simulation/ActionTemplateItem/portal_types/portal_actions/rule_predicate_view.xml @@ -0,0 +1,86 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </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>rule_predicate_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>4.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> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Predicate_view</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>python: object.getPortalType() in set(portal.getPortalRuleTypeList())</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_simulation/bt/revision b/bt5/erp5_simulation/bt/revision index 05b9b66ffd..5755659621 100644 --- a/bt5/erp5_simulation/bt/revision +++ b/bt5/erp5_simulation/bt/revision @@ -1 +1 @@ -162 \ No newline at end of file +163 \ No newline at end of file diff --git a/bt5/erp5_simulation/bt/template_action_path_list b/bt5/erp5_simulation/bt/template_action_path_list index 70ef952012..273dd9ca6d 100644 --- a/bt5/erp5_simulation/bt/template_action_path_list +++ b/bt5/erp5_simulation/bt/template_action_path_list @@ -33,4 +33,5 @@ String Divergence Tester | predicate String Divergence Tester | view Variation Divergence Tester | configuration Variation Divergence Tester | predicate -Variation Divergence Tester | view \ No newline at end of file +Variation Divergence Tester | view +portal_actions | rule_predicate_view \ No newline at end of file -- 2.30.9