From 1d369c991349ba42b8dd3205d81d5127ba740525 Mon Sep 17 00:00:00 2001 From: Pere Cortes <pere.cortes@nexedi.com> Date: Thu, 20 Dec 2012 16:56:55 +0000 Subject: [PATCH] erp5_safeimage bt5 improved --- .../Image%20Tile%20Group/view.xml | 85 +++++++++++++++++++ .../Image%20Tile%20Transformed/view.xml | 85 +++++++++++++++++++ .../portal_types/Image%20Tile/view.xml | 85 +++++++++++++++++++ .../workflow_chain_type.xml | 6 +- bt5/erp5_safeimage/bt/revision | 2 +- .../bt/template_action_path_list | 3 + .../template_portal_type_workflow_chain_list | 3 + 7 files changed, 265 insertions(+), 4 deletions(-) create mode 100644 bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile%20Group/view.xml create mode 100644 bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile%20Transformed/view.xml create mode 100644 bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile/view.xml create mode 100644 bt5/erp5_safeimage/bt/template_action_path_list diff --git a/bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile%20Group/view.xml b/bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile%20Group/view.xml new file mode 100644 index 0000000000..27f22b1608 --- /dev/null +++ b/bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile%20Group/view.xml @@ -0,0 +1,85 @@ +<?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>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> + <none/> + </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>portal_type</string> </key> + <value> <string>Action Information</string> </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> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/ImageTileGroup_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile%20Transformed/view.xml b/bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile%20Transformed/view.xml new file mode 100644 index 0000000000..230f9453b9 --- /dev/null +++ b/bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile%20Transformed/view.xml @@ -0,0 +1,85 @@ +<?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>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> + <none/> + </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>portal_type</string> </key> + <value> <string>Action Information</string> </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> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/ImageTileTransformed_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile/view.xml b/bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile/view.xml new file mode 100644 index 0000000000..a00b4ced65 --- /dev/null +++ b/bt5/erp5_safeimage/ActionTemplateItem/portal_types/Image%20Tile/view.xml @@ -0,0 +1,85 @@ +<?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>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> + <none/> + </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>portal_type</string> </key> + <value> <string>Action Information</string> </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> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/ImageTile_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_safeimage/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_safeimage/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml index 08a41323a7..6ab5f09fc7 100644 --- a/bt5/erp5_safeimage/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml +++ b/bt5/erp5_safeimage/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -1,14 +1,14 @@ <workflow_chain> <chain> <type>Image Tile</type> - <workflow>validation_workflow</workflow> + <workflow>edit_workflow, validation_workflow</workflow> </chain> <chain> <type>Image Tile Group</type> - <workflow>validation_workflow</workflow> + <workflow>edit_workflow, validation_workflow</workflow> </chain> <chain> <type>Image Tile Transformed</type> - <workflow>validation_workflow</workflow> + <workflow>edit_workflow, validation_workflow</workflow> </chain> </workflow_chain> \ No newline at end of file diff --git a/bt5/erp5_safeimage/bt/revision b/bt5/erp5_safeimage/bt/revision index f11c82a4cb..9a037142aa 100644 --- a/bt5/erp5_safeimage/bt/revision +++ b/bt5/erp5_safeimage/bt/revision @@ -1 +1 @@ -9 \ No newline at end of file +10 \ No newline at end of file diff --git a/bt5/erp5_safeimage/bt/template_action_path_list b/bt5/erp5_safeimage/bt/template_action_path_list new file mode 100644 index 0000000000..4a961c1f97 --- /dev/null +++ b/bt5/erp5_safeimage/bt/template_action_path_list @@ -0,0 +1,3 @@ +Image Tile Group | view +Image Tile Transformed | view +Image Tile | view \ No newline at end of file diff --git a/bt5/erp5_safeimage/bt/template_portal_type_workflow_chain_list b/bt5/erp5_safeimage/bt/template_portal_type_workflow_chain_list index 6ee4f3d9b4..bdb63790ec 100644 --- a/bt5/erp5_safeimage/bt/template_portal_type_workflow_chain_list +++ b/bt5/erp5_safeimage/bt/template_portal_type_workflow_chain_list @@ -1,3 +1,6 @@ +Image Tile Group | edit_workflow Image Tile Group | validation_workflow +Image Tile Transformed | edit_workflow Image Tile Transformed | validation_workflow +Image Tile | edit_workflow Image Tile | validation_workflow \ No newline at end of file -- 2.30.9