Retrait script obsolète.
[Plinn.git] / profiles / default / workflows / default_workflow / definition.xml
index 4ece941..3300f09 100644 (file)
@@ -1,9 +1,8 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <dc-workflow workflow_id="default_workflow"
              title="Plinn default workflow" description=""
              state_variable="review_state"
              initial_state="private" manager_bypass="False">
 <dc-workflow workflow_id="default_workflow"
              title="Plinn default workflow" description=""
              state_variable="review_state"
              initial_state="private" manager_bypass="False">
  <permission>Access contents information</permission>
  <permission>Change portal events</permission>
  <permission>Change portal topics</permission>
  <permission>Access contents information</permission>
  <permission>Change portal events</permission>
  <permission>Change portal topics</permission>
   <exit-transition transition_id="publish"/>
   <exit-transition transition_id="reject"/>
   <exit-transition transition_id="retract"/>
   <exit-transition transition_id="publish"/>
   <exit-transition transition_id="reject"/>
   <exit-transition transition_id="retract"/>
-  <exit-transition transition_id="send_email"/>
   <permission-map name="Access contents information"
   <permission-map name="Access contents information"
-                  acquired="False">
-   <permission-role>Contributor</permission-role>
+                  acquired="True">
    <permission-role>Manager</permission-role>
    <permission-role>Manager</permission-role>
-   <permission-role>Owner</permission-role>
-   <permission-role>Reader</permission-role>
-   <permission-role>Reviewer</permission-role>
   </permission-map>
   <permission-map name="Change portal events"
                   acquired="False">
   </permission-map>
   <permission-map name="Change portal events"
                   acquired="False">
  <state state_id="private"
         title="Non-visible and editable only by owner">
   <exit-transition transition_id="direct_publish"/>
  <state state_id="private"
         title="Non-visible and editable only by owner">
   <exit-transition transition_id="direct_publish"/>
-  <exit-transition transition_id="send_email"/>
   <exit-transition transition_id="submit"/>
   <permission-map name="Access contents information"
                   acquired="False">
    <permission-role>Contributor</permission-role>
    <permission-role>Manager</permission-role>
    <permission-role>Owner</permission-role>
   <exit-transition transition_id="submit"/>
   <permission-map name="Access contents information"
                   acquired="False">
    <permission-role>Contributor</permission-role>
    <permission-role>Manager</permission-role>
    <permission-role>Owner</permission-role>
-   <permission-role>Reader</permission-role>
   </permission-map>
   <permission-map name="Change portal events"
                   acquired="False">
   </permission-map>
   <permission-map name="Change portal events"
                   acquired="False">
  <state state_id="published" title="Public">
   <exit-transition transition_id="reject"/>
   <exit-transition transition_id="retract"/>
  <state state_id="published" title="Public">
   <exit-transition transition_id="reject"/>
   <exit-transition transition_id="retract"/>
-  <exit-transition transition_id="send_email"/>
   <permission-map name="Access contents information"
                   acquired="True">
   <permission-map name="Access contents information"
                   acquired="True">
-   <permission-role>Anonymous</permission-role>
    <permission-role>Manager</permission-role>
   </permission-map>
   <permission-map name="Change portal events"
    <permission-role>Manager</permission-role>
   </permission-map>
   <permission-map name="Change portal events"
              before_script="" after_script="">
   <description>Reviewer can directly publish content  if he have de Owner role (not necessarily ownership)</description>
   <action url="%(content_url)s/content_publish_form?direct:boolean=True"
              before_script="" after_script="">
   <description>Reviewer can directly publish content  if he have de Owner role (not necessarily ownership)</description>
   <action url="%(content_url)s/content_publish_form?direct:boolean=True"
-          category="workflow">Publish</action>
+          category="workflow" icon="">Publish</action>
   <guard>
    <guard-permission>Review portal content</guard-permission>
    <guard-expression>python:user.allowed(here, ['Owner'])</guard-expression>
   <guard>
    <guard-permission>Review portal content</guard-permission>
    <guard-expression>python:user.allowed(here, ['Owner'])</guard-expression>
              new_state="published" trigger="USER"
              before_script="" after_script="">
   <action url="%(content_url)s/content_publish_form"
              new_state="published" trigger="USER"
              before_script="" after_script="">
   <action url="%(content_url)s/content_publish_form"
-          category="workflow">Publish</action>
+          category="workflow" icon="">Publish</action>
   <guard>
    <guard-permission>Review portal content</guard-permission>
   </guard>
   <guard>
    <guard-permission>Review portal content</guard-permission>
   </guard>
              new_state="private" trigger="USER"
              before_script="" after_script="">
   <action url="%(content_url)s/content_reject_form"
              new_state="private" trigger="USER"
              before_script="" after_script="">
   <action url="%(content_url)s/content_reject_form"
-          category="workflow">Reject</action>
+          category="workflow" icon="">Reject</action>
   <guard>
    <guard-permission>Review portal content</guard-permission>
   </guard>
   <guard>
    <guard-permission>Review portal content</guard-permission>
   </guard>
              new_state="private" trigger="USER"
              before_script="" after_script="">
   <action url="%(content_url)s/content_retract_form"
              new_state="private" trigger="USER"
              before_script="" after_script="">
   <action url="%(content_url)s/content_retract_form"
-          category="workflow">Retract</action>
+          category="workflow" icon="">Retract</action>
   <guard>
    <guard-permission>Request review</guard-permission>
    <guard-expression>python:not(here.portal_membership.checkPermission('Review portal content', here))</guard-expression>
   </guard>
  </transition>
   <guard>
    <guard-permission>Request review</guard-permission>
    <guard-expression>python:not(here.portal_membership.checkPermission('Review portal content', here))</guard-expression>
   </guard>
  </transition>
- <transition transition_id="send_email" title=""
-             new_state="" trigger="USER" before_script=""
-             after_script="">
-  <action url="%(content_url)s/send_email_form?wfid=default_workflow"
-          category="workflow">Send an email</action>
-  <guard>
-   <guard-permission>View</guard-permission>
-   <guard-role>Member</guard-role>
-  </guard>
- </transition>
  <transition transition_id="submit"
              title="Member requests publishing"
              new_state="pending" trigger="USER"
              before_script="" after_script="">
   <action url="%(content_url)s/content_submit_form"
  <transition transition_id="submit"
              title="Member requests publishing"
              new_state="pending" trigger="USER"
              before_script="" after_script="">
   <action url="%(content_url)s/content_submit_form"
-          category="workflow">Submit</action>
+          category="workflow" icon="">Submit</action>
   <guard>
    <guard-permission>Request review</guard-permission>
   </guard>
   <guard>
    <guard-permission>Request review</guard-permission>
   </guard>
  <worklist worklist_id="reviewer_queue" title="">
   <description>Reviewer tasks</description>
   <action url="%(portal_url)s/list_pending_contents"
  <worklist worklist_id="reviewer_queue" title="">
   <description>Reviewer tasks</description>
   <action url="%(portal_url)s/list_pending_contents"
-          category="global">Pending (%(count)d)</action>
+          category="global" icon="">Pending (%(count)d)</action>
   <guard>
    <guard-expression>here/havePendingContents</guard-expression>
   </guard>
   <guard>
    <guard-expression>here/havePendingContents</guard-expression>
   </guard>