diff --git a/bt5/erp5_web_ung_theme/ActionTemplateItem/portal_types/Web%20Page/view.xml b/bt5/erp5_web_ung_theme/ActionTemplateItem/portal_types/Web%20Page/view.xml new file mode 100644 index 0000000000000000000000000000000000000000..92dd57bbaa69d955546cb9a11d50682ac94e4c13 --- /dev/null +++ b/bt5/erp5_web_ung_theme/ActionTemplateItem/portal_types/Web%20Page/view.xml @@ -0,0 +1,81 @@ +<?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>priority</string> </key> + <value> <float>3.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}/WebPage_view</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/ActionTemplateItem/portal_types/Web%20Page/view_editor.xml b/bt5/erp5_web_ung_theme/ActionTemplateItem/portal_types/Web%20Page/view_editor.xml new file mode 100644 index 0000000000000000000000000000000000000000..e8077dcddf6f463ad71b549429054b8a0f3cba4a --- /dev/null +++ b/bt5/erp5_web_ung_theme/ActionTemplateItem/portal_types/Web%20Page/view_editor.xml @@ -0,0 +1,79 @@ +<?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> <string encoding="base64">Cg==</string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>view_editor</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>Modify portal content</string> + </tuple> + </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>1.1</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Edit</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}/WebPage_viewEditor</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/ActionTemplateItem/portal_types/Web%20Page/web_view.xml b/bt5/erp5_web_ung_theme/ActionTemplateItem/portal_types/Web%20Page/web_view.xml new file mode 100644 index 0000000000000000000000000000000000000000..44e528a490bd3dab1815138693e1d809df470170 --- /dev/null +++ b/bt5/erp5_web_ung_theme/ActionTemplateItem/portal_types/Web%20Page/web_view.xml @@ -0,0 +1,96 @@ +<?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_web_view</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_web_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> + <none/> + </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>web_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>0.9</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Web 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}/WebPage_viewEditor</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 is not None and object.isWebMode() and not object.isEditableMode()</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_web_ung_theme/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml b/bt5/erp5_web_ung_theme/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml new file mode 100644 index 0000000000000000000000000000000000000000..7a7845dc2cbce0d85b4539babb282404f49915d9 --- /dev/null +++ b/bt5/erp5_web_ung_theme/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml @@ -0,0 +1,6 @@ +<workflow_chain> + <chain> + <type>Web Page</type> + <workflow>-document_publication_workflow, document_conversion_interaction_workflow, document_security_interaction_workflow, edit_workflow, processing_status_workflow, ung_document_publication_workflow</workflow> + </chain> +</workflow_chain> \ No newline at end of file diff --git a/bt5/erp5_web_ung_theme/bt/change_log b/bt5/erp5_web_ung_theme/bt/change_log index d56e10c01006b917bdacd1d5cc6705daf18146a8..08dad6e98cbce565f8444f851c60925d9b330ea2 100644 --- a/bt5/erp5_web_ung_theme/bt/change_log +++ b/bt5/erp5_web_ung_theme/bt/change_log @@ -1,3 +1,6 @@ +2012-12-13 Ivan +* Move "Web Page" adjustments that affect other ERP5 web themes here. + 2011-11-15 tatuya * Follow Gadget objects default validation sate changing, now they are public. @@ -126,4 +129,4 @@ * Added ERP5 Form to show contents allowed in UNG WebSite and added new styles to listbox 2010-10-14 gabriel -* Clean up the bt5 because all fields were moved to erp5_web_ung_core +* Clean up the bt5 because all fields were moved to erp5_web_ung_core \ No newline at end of file diff --git a/bt5/erp5_web_ung_theme/bt/description b/bt5/erp5_web_ung_theme/bt/description index 6692258a2a0be67b16c6e23c24663d144be2e698..9e9f3c1c2490d0bca7d471d458f5b4db3c4ad4ec 100644 --- a/bt5/erp5_web_ung_theme/bt/description +++ b/bt5/erp5_web_ung_theme/bt/description @@ -1 +1,2 @@ -The UNG Theme for ERP5. \ No newline at end of file +The UNG Theme for ERP5. +Note: currently this bt5 heavily modifies Web Page portal type which might affect other ERP5 web themes. \ No newline at end of file diff --git a/bt5/erp5_web_ung_theme/bt/revision b/bt5/erp5_web_ung_theme/bt/revision index 61ab674d695bf2716dc4fd1f144ac843b16e4b7a..eb8f2fa1aeb162439e4756fc55642cad6c193cff 100644 --- a/bt5/erp5_web_ung_theme/bt/revision +++ b/bt5/erp5_web_ung_theme/bt/revision @@ -1 +1 @@ -378 +379 \ No newline at end of file diff --git a/bt5/erp5_web_ung_theme/bt/template_action_path_list b/bt5/erp5_web_ung_theme/bt/template_action_path_list new file mode 100644 index 0000000000000000000000000000000000000000..be9d0677afeb1bf13a1e63e533f5d757434c9745 --- /dev/null +++ b/bt5/erp5_web_ung_theme/bt/template_action_path_list @@ -0,0 +1,3 @@ +Web Page | view +Web Page | view_editor +Web Page | web_view \ No newline at end of file diff --git a/bt5/erp5_web_ung_theme/bt/template_portal_type_workflow_chain_list b/bt5/erp5_web_ung_theme/bt/template_portal_type_workflow_chain_list new file mode 100644 index 0000000000000000000000000000000000000000..cacbd2ce1df7b4ca8bb86406cffab5ac4bb73687 --- /dev/null +++ b/bt5/erp5_web_ung_theme/bt/template_portal_type_workflow_chain_list @@ -0,0 +1,6 @@ +Web Page | -document_publication_workflow +Web Page | document_conversion_interaction_workflow +Web Page | document_security_interaction_workflow +Web Page | edit_workflow +Web Page | processing_status_workflow +Web Page | ung_document_publication_workflow \ No newline at end of file