Skip to content

Commit

Permalink
zpretty xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Dec 12, 2022
1 parent 4129259 commit 0149074
Show file tree
Hide file tree
Showing 21 changed files with 263 additions and 167 deletions.
14 changes: 7 additions & 7 deletions Products/CMFPlacefulWorkflow/profiles/base/componentregistry.xml
@@ -1,9 +1,9 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<componentregistry>
<adapters/>
<utilities>
<utility
interface="Products.CMFPlacefulWorkflow.interfaces.IPlacefulWorkflowTool"
object="portal_placeful_workflow"/>
</utilities>
<adapters />
<utilities>
<utility interface="Products.CMFPlacefulWorkflow.interfaces.IPlacefulWorkflowTool"
object="portal_placeful_workflow"
/>
</utilities>
</componentregistry>
32 changes: 18 additions & 14 deletions Products/CMFPlacefulWorkflow/profiles/base/controlpanel.xml
@@ -1,15 +1,19 @@
<?xml version="1.0"?>
<object
name="portal_controlpanel"
meta_type="Plone Control Panel Tool"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="plone">
<configlet
title="Workflow Policies" action_id="placefulworkflow"
appId="CMFPlacefulWorkflow" category="Products" condition_expr=""
icon_expr="string:toolbar-action/workflow"
url_expr="string:$portal_url/@@workflow-policies-controlpanel" visible="True"
i18n:attributes="title">
<permission>Manage portal</permission>
</configlet>
<?xml version="1.0" encoding="utf-8"?>
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n"
meta_type="Plone Control Panel Tool"
name="portal_controlpanel"
i18n:domain="plone"
>
<configlet action_id="placefulworkflow"
appId="CMFPlacefulWorkflow"
category="Products"
condition_expr=""
icon_expr="string:toolbar-action/workflow"
title="Workflow Policies"
url_expr="string:$portal_url/@@workflow-policies-controlpanel"
visible="True"
i18n:attributes="title"
>
<permission>Manage portal</permission>
</configlet>
</object>
1 change: 1 addition & 0 deletions Products/CMFPlacefulWorkflow/profiles/base/metadata.xml
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<version>1001</version>
</metadata>
@@ -1,5 +1,9 @@
<?xml version="1.0"?>
<object name="portal_placeful_workflow" meta_type="Placeful Workflow Tool">
<property name="title"></property>
<property name="max_chain_length" type="int">1</property>
</object>
<?xml version="1.0" encoding="utf-8"?>
<object meta_type="Placeful Workflow Tool"
name="portal_placeful_workflow"
>
<property name="title" />
<property name="max_chain_length"
type="int"
>1</property>
</object>
9 changes: 4 additions & 5 deletions Products/CMFPlacefulWorkflow/profiles/base/toolset.xml
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<tool-setup>
<required
tool_id="portal_placeful_workflow"
class="Products.CMFPlacefulWorkflow.PlacefulWorkflowTool.PlacefulWorkflowTool"
/>
<required class="Products.CMFPlacefulWorkflow.PlacefulWorkflowTool.PlacefulWorkflowTool"
tool_id="portal_placeful_workflow"
/>
</tool-setup>
1 change: 1 addition & 0 deletions Products/CMFPlacefulWorkflow/profiles/default/metadata.xml
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<version>1001</version>
<dependencies>
Expand Down
@@ -1,9 +1,21 @@
<?xml version="1.0"?>
<object name="portal_placeful_workflow" meta_type="Placeful Workflow Tool">
<property name="title"></property>
<property name="max_chain_length" type="int">1</property>
<object name="intranet" meta_type="WorkflowPolicy"/>
<object name="old-plone" meta_type="WorkflowPolicy"/>
<object name="one-state" meta_type="WorkflowPolicy"/>
<object name="simple-publication" meta_type="WorkflowPolicy"/>
<?xml version="1.0" encoding="utf-8"?>
<object meta_type="Placeful Workflow Tool"
name="portal_placeful_workflow"
>
<property name="title" />
<property name="max_chain_length"
type="int"
>1</property>
<object meta_type="WorkflowPolicy"
name="intranet"
/>
<object meta_type="WorkflowPolicy"
name="old-plone"
/>
<object meta_type="WorkflowPolicy"
name="one-state"
/>
<object meta_type="WorkflowPolicy"
name="simple-publication"
/>
</object>
@@ -1,21 +1,35 @@
<?xml version="1.0"?>
<object name="intranet" meta_type="WorkflowPolicy">
<property name="title">Intranet</property>
<bindings>
<default>
<bound-workflow workflow_id="intranet_workflow"/>
</default>
<type default_chain="true" type_id="Document"/>
<type default_chain="true" type_id="Event"/>
<type default_chain="true" type_id="File"/>
<type type_id="Folder">
<bound-workflow workflow_id="intranet_folder_workflow"/>
</type>
<type default_chain="true" type_id="Image"/>
<type default_chain="true" type_id="Link"/>
<type default_chain="true" type_id="News Item"/>
<type type_id="Collection">
<bound-workflow workflow_id="intranet_folder_workflow"/>
</type>
</bindings>
<?xml version="1.0" encoding="utf-8"?>
<object meta_type="WorkflowPolicy"
name="intranet"
>
<property name="title">Intranet</property>
<bindings>
<default>
<bound-workflow workflow_id="intranet_workflow" />
</default>
<type default_chain="true"
type_id="Document"
/>
<type default_chain="true"
type_id="Event"
/>
<type default_chain="true"
type_id="File"
/>
<type type_id="Folder">
<bound-workflow workflow_id="intranet_folder_workflow" />
</type>
<type default_chain="true"
type_id="Image"
/>
<type default_chain="true"
type_id="Link"
/>
<type default_chain="true"
type_id="News Item"
/>
<type type_id="Collection">
<bound-workflow workflow_id="intranet_folder_workflow" />
</type>
</bindings>
</object>
@@ -1,21 +1,35 @@
<?xml version="1.0"?>
<object name="old-plone" meta_type="WorkflowPolicy">
<property name="title">Old Plone</property>
<bindings>
<default>
<bound-workflow workflow_id="plone_workflow"/>
</default>
<type default_chain="true" type_id="Document"/>
<type default_chain="true" type_id="Event"/>
<type default_chain="true" type_id="File"/>
<type type_id="Folder">
<bound-workflow workflow_id="folder_workflow"/>
</type>
<type default_chain="true" type_id="Image"/>
<type default_chain="true" type_id="Link"/>
<type default_chain="true" type_id="News Item"/>
<type type_id="Collection">
<bound-workflow workflow_id="folder_workflow"/>
</type>
</bindings>
<?xml version="1.0" encoding="utf-8"?>
<object meta_type="WorkflowPolicy"
name="old-plone"
>
<property name="title">Old Plone</property>
<bindings>
<default>
<bound-workflow workflow_id="plone_workflow" />
</default>
<type default_chain="true"
type_id="Document"
/>
<type default_chain="true"
type_id="Event"
/>
<type default_chain="true"
type_id="File"
/>
<type type_id="Folder">
<bound-workflow workflow_id="folder_workflow" />
</type>
<type default_chain="true"
type_id="Image"
/>
<type default_chain="true"
type_id="Link"
/>
<type default_chain="true"
type_id="News Item"
/>
<type type_id="Collection">
<bound-workflow workflow_id="folder_workflow" />
</type>
</bindings>
</object>
@@ -1,19 +1,33 @@
<?xml version="1.0"?>
<object name="one-state" meta_type="WorkflowPolicy">
<property name="title">One state</property>
<bindings>
<default>
<bound-workflow workflow_id="one_state_workflow"/>
</default>
<type default_chain="true" type_id="Document"/>
<type default_chain="true" type_id="Event"/>
<type type_id="File">
</type>
<type default_chain="true" type_id="Folder"/>
<type type_id="Image">
</type>
<type default_chain="true" type_id="Link"/>
<type default_chain="true" type_id="News Item"/>
<type default_chain="true" type_id="Collection"/>
</bindings>
<?xml version="1.0" encoding="utf-8"?>
<object meta_type="WorkflowPolicy"
name="one-state"
>
<property name="title">One state</property>
<bindings>
<default>
<bound-workflow workflow_id="one_state_workflow" />
</default>
<type default_chain="true"
type_id="Document"
/>
<type default_chain="true"
type_id="Event"
/>
<type type_id="File">
</type>
<type default_chain="true"
type_id="Folder"
/>
<type type_id="Image">
</type>
<type default_chain="true"
type_id="Link"
/>
<type default_chain="true"
type_id="News Item"
/>
<type default_chain="true"
type_id="Collection"
/>
</bindings>
</object>
@@ -1,19 +1,33 @@
<?xml version="1.0"?>
<object name="simple-publication" meta_type="WorkflowPolicy">
<property name="title">Simple publication</property>
<bindings>
<default>
<bound-workflow workflow_id="simple_publication_workflow"/>
</default>
<type default_chain="true" type_id="Document"/>
<type default_chain="true" type_id="Event"/>
<type type_id="File">
</type>
<type default_chain="true" type_id="Folder"/>
<type type_id="Image">
</type>
<type default_chain="true" type_id="Link"/>
<type default_chain="true" type_id="News Item"/>
<type default_chain="true" type_id="Collection"/>
</bindings>
<?xml version="1.0" encoding="utf-8"?>
<object meta_type="WorkflowPolicy"
name="simple-publication"
>
<property name="title">Simple publication</property>
<bindings>
<default>
<bound-workflow workflow_id="simple_publication_workflow" />
</default>
<type default_chain="true"
type_id="Document"
/>
<type default_chain="true"
type_id="Event"
/>
<type type_id="File">
</type>
<type default_chain="true"
type_id="Folder"
/>
<type type_id="Image">
</type>
<type default_chain="true"
type_id="Link"
/>
<type default_chain="true"
type_id="News Item"
/>
<type default_chain="true"
type_id="Collection"
/>
</bindings>
</object>
15 changes: 8 additions & 7 deletions Products/CMFPlacefulWorkflow/profiles/default/rolemap.xml
@@ -1,11 +1,12 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<rolemap>
<permissions>
<permission name="CMFPlacefulWorkflow: Manage workflow policies"
acquire="True">
<role name="Manager"/>
<role name="Owner"/>
<role name="Site Administrator"/>
<permission acquire="True"
name="CMFPlacefulWorkflow: Manage workflow policies"
>
<role name="Manager" />
<role name="Owner" />
<role name="Site Administrator" />
</permission>
</permissions>
</rolemap>
</rolemap>
@@ -1,10 +1,10 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<componentregistry>
<adapters/>
<adapters />
<utilities>
<utility
remove="true"
interface="Products.CMFPlacefulWorkflow.interfaces.IPlacefulWorkflowTool"
object="portal_placeful_workflow"/>
<utility interface="Products.CMFPlacefulWorkflow.interfaces.IPlacefulWorkflowTool"
object="portal_placeful_workflow"
remove="true"
/>
</utilities>
</componentregistry>
@@ -1,4 +1,6 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<object name="portal_controlpanel">
<configlet action_id="placefulworkflow" remove="true" />
<configlet action_id="placefulworkflow"
remove="true"
/>
</object>
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<version>1000</version>
</metadata>

0 comments on commit 0149074

Please sign in to comment.