Index: WAeUP_SRP/trunk/profiles/default/workflows/section_content_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/section_content_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/section_content_wf/definition.xml	(revision 939)
@@ -0,0 +1,228 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="section_content_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>Modify portal content</permission>
+ <permission>View</permission>
+ <permission>WebDAV Lock items</permission>
+ <permission>WebDAV Unlock items</permission>
+ <state state_id="pending" title="Waiting for reviewer">
+  <exit-transition transition_id="accept"/>
+  <exit-transition transition_id="reject"/>
+  <permission-map name="Modify portal content"
+                  acquired="False">
+   <permission-role>SectionReviewer</permission-role>
+   <permission-role>SectionManager</permission-role>
+   <permission-role>Manager</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="False">
+   <permission-role>SectionReviewer</permission-role>
+   <permission-role>SectionManager</permission-role>
+   <permission-role>Manager</permission-role>
+   <permission-role>Owner</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Lock items" acquired="False">
+   <permission-role>SectionReviewer</permission-role>
+   <permission-role>SectionManager</permission-role>
+   <permission-role>Manager</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Unlock items"
+                  acquired="False">
+   <permission-role>SectionReviewer</permission-role>
+   <permission-role>SectionManager</permission-role>
+   <permission-role>Manager</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="published" title="Public">
+  <exit-transition transition_id="unpublish"/>
+  <exit-transition transition_id="cut_copy_paste"/>
+  <exit-transition transition_id="sub_publishing"/>
+  <permission-map name="Modify portal content"
+                  acquired="False">
+   <permission-role>Manager</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="False">
+   <permission-role>SectionReader</permission-role>
+   <permission-role>SectionReviewer</permission-role>
+   <permission-role>SectionManager</permission-role>
+   <permission-role>Manager</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Lock items" acquired="False">
+   <permission-role>Manager</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Unlock items"
+                  acquired="False">
+   <permission-role>Manager</permission-role>
+  </permission-map>
+ </state>
+ <transition transition_id="accept"
+             title="Reviewer accepts publishing"
+             new_state="published" trigger="USER"
+             before_script=""
+             after_script="fixup_after_publish">
+  <action url="%(content_url)s/content_accept_form"
+          category="workflow">action_accept</action>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+  </guard>
+  <transition-behavior behavior_id="merge"/>
+ </transition>
+ <transition transition_id="cut_copy_paste"
+             title="Cut/Copy/Paste" new_state=""
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-move"/>
+  <transition-behavior behavior_id="allow-sub-delete"/>
+  <transition-behavior behavior_id="allow-sub-copy"/>
+ </transition>
+ <transition transition_id="publish"
+             title="Member publishes directly"
+             new_state="published" trigger="USER"
+             before_script=""
+             after_script="fixup_after_publish">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+  </guard>
+  <transition-behavior behavior_id="initial-clone"/>
+  <transition-behavior behavior_id="freeze"/>
+  <transition-behavior behavior_id="merge"/>
+ </transition>
+ <transition transition_id="reject"
+             title="Reviewer rejects publishing"
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  <action url="%(content_url)s/content_reject_form"
+          category="workflow">action_reject</action>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+  </guard>
+  <transition-behavior behavior_id="delete"/>
+ </transition>
+ <transition transition_id="sub_publishing"
+             title="Allow publishing of subdocuments"
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+   <guard-role>SectionReader</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-publishing"/>
+ </transition>
+ <transition transition_id="submit"
+             title="Member requests publishing"
+             new_state="pending" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>Member</guard-role>
+  </guard>
+  <transition-behavior behavior_id="initial-clone"/>
+  <transition-behavior behavior_id="freeze"/>
+ </transition>
+ <transition transition_id="unpublish"
+             title="Reviewer removes content from publication"
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  <action url="%(content_url)s/content_unpublish_form"
+          category="workflow">action_un_publish</action>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+  </guard>
+  <transition-behavior behavior_id="delete"/>
+ </transition>
+ <variable variable_id="action" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>The last transition</description>
+  <default>
+   
+   <expression>transition/getId|nothing</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="actor" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>The ID of the user who performed</description>
+  <default>
+   
+   <expression>user/getId</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="comments" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>Comments about the last transition</description>
+  <default>
+   
+   <expression>python:state_change.kwargs.get('comment', '')</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="dest_container" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>Destination container for the last paste/publish</description>
+  <default>
+   
+   <expression>python:state_change.kwargs.get('dest_container', '')</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="language_revs" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>The language revisions of the proxy</description>
+  <default>
+   
+   <expression>state_change/getLanguageRevisions</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="review_history" for_catalog="False"
+           for_status="False" update_always="False">
+  <description>Provides access to workflow history</description>
+  <default>
+   
+   <expression>state_change/getHistory</expression>
+  </default>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+  </guard>
+ </variable>
+ <variable variable_id="time" for_catalog="True"
+           for_status="True" update_always="True">
+  <description>Time of the last transition</description>
+  <default>
+   
+   <expression>state_change/getDateTime</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <script script_id="fixup_after_publish"
+         type="Script (Python)"
+         filename="workflows/section_content_wf/scripts/fixup_after_publish.py"/>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/section_content_wf/scripts/fixup_after_publish.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/section_content_wf/scripts/fixup_after_publish.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/section_content_wf/scripts/fixup_after_publish.py	(revision 939)
@@ -0,0 +1,11 @@
+## Script (Python) "fixup_after_publish"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+from Products.CPSWorkflow.util import updateEffectiveDate
+return updateEffectiveDate(state_change.object)
Index: WAeUP_SRP/trunk/profiles/default/workflows/section_folder_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/section_folder_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/section_folder_wf/definition.xml	(revision 939)
@@ -0,0 +1,84 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="section_folder_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>View</permission>
+ <state state_id="work" title="Work">
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="cut_copy_paste"/>
+  <exit-transition transition_id="translate"/>
+  <exit-transition transition_id="delete_translation"/>
+  <permission-map name="View" acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>SectionManager</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+   <permission-role>SectionReader</permission-role>
+   <permission-role>SectionReviewer</permission-role>
+  </permission-map>
+ </state>
+ <transition transition_id="create" title="Initial creation"
+             new_state="work" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+ <transition transition_id="create_content"
+             title="Create content" new_state="work"
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+   <guard-role>SectionReader</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+  <transition-behavior behavior_id="allow-sub-publishing"/>
+ </transition>
+ <transition transition_id="cut_copy_paste"
+             title="Cut/Copy/Paste" new_state=""
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+   <guard-role>SectionReader</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-move"/>
+  <transition-behavior behavior_id="allow-sub-delete"/>
+  <transition-behavior behavior_id="allow-sub-copy"/>
+ </transition>
+ <transition transition_id="delete_translation"
+             title="Delete a translation" new_state=""
+             trigger="USER"
+             before_script="delete_language_from_proxy"
+             after_script="">
+  
+  <guard>
+   <guard-permission>Modify portal content</guard-permission>
+   <guard-expression>python:not state_change.object.isDefaultLanguage()</guard-expression>
+  </guard>
+ </transition>
+ <transition transition_id="translate"
+             title="Add translation" new_state=""
+             trigger="USER"
+             before_script="add_language_to_proxy"
+             after_script="">
+  
+  <guard>
+   <guard-permission>Modify portal content</guard-permission>
+  </guard>
+ </transition>
+ <script script_id="add_language_to_proxy"
+         type="Script (Python)"
+         filename="workflows/section_folder_wf/scripts/add_language_to_proxy.py"/>
+ <script script_id="delete_language_from_proxy"
+         type="Script (Python)"
+         filename="workflows/section_folder_wf/scripts/delete_language_from_proxy.py"/>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/section_folder_wf/scripts/add_language_to_proxy.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/section_folder_wf/scripts/add_language_to_proxy.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/section_folder_wf/scripts/add_language_to_proxy.py	(revision 939)
@@ -0,0 +1,12 @@
+## Script (Python) "add_language_to_proxy"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+lang=state_change.kwargs.get('lang')
+from_lang=state_change.kwargs.get('from_lang')
+state_change.object.addLanguageToProxy(lang, from_lang)
Index: WAeUP_SRP/trunk/profiles/default/workflows/section_folder_wf/scripts/delete_language_from_proxy.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/section_folder_wf/scripts/delete_language_from_proxy.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/section_folder_wf/scripts/delete_language_from_proxy.py	(revision 939)
@@ -0,0 +1,11 @@
+## Script (Python) "delete_language_from_proxy"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+lang=state_change.kwargs.get('lang')
+state_change.object.delLanguageFromProxy(lang)
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_accommodation_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_accommodation_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_accommodation_wf/definition.xml	(revision 939)
@@ -0,0 +1,54 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="waeup_accommodation_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>View</permission>
+ <state state_id="work" title="Work">
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="cut_copy_paste"/>
+  <permission-map name="View" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <transition transition_id="create" title="Initial creation"
+             new_state="work" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+ <transition transition_id="create_content"
+             title="Create content" new_state="work"
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+   <guard-role>SectionReader</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+  <transition-behavior behavior_id="allow-sub-publishing"/>
+ </transition>
+ <transition transition_id="cut_copy_paste"
+             title="Cut/Copy/Paste" new_state=""
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+   <guard-role>SectionReader</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-delete"/>
+  <transition-behavior behavior_id="allow-sub-move"/>
+  <transition-behavior behavior_id="allow-sub-copy"/>
+ </transition>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_base_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_base_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_base_wf/definition.xml	(revision 939)
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="waeup_base_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>View</permission>
+ <state state_id="checked" title="Checked">
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="cut_copy_paste"/>
+  <exit-transition transition_id="retract"/>
+  <permission-map name="View" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="unchecked" title="Unchecked">
+  <exit-transition transition_id="approve"/>
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="cut_copy_paste"/>
+  <permission-map name="View" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <transition transition_id="approve" title="Approve"
+             new_state="checked" trigger="USER"
+             before_script="" after_script="">
+  <action url="%(content_url)s/content_status_modify?workflow_action=approve"
+          category="workflow">Approve</action>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="create" title="Initial creation"
+             new_state="unchecked" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+ <transition transition_id="create_content"
+             title="Create content" new_state=""
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+  <transition-behavior behavior_id="allow-sub-publishing"/>
+ </transition>
+ <transition transition_id="cut_copy_paste"
+             title="Cut/Copy/Paste" new_state=""
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-move"/>
+  <transition-behavior behavior_id="allow-sub-delete"/>
+  <transition-behavior behavior_id="allow-sub-copy"/>
+ </transition>
+ <transition transition_id="retract" title="Retract"
+             new_state="unchecked" trigger="USER"
+             before_script="" after_script="">
+  <action url="%(content_url)s/content_status_modify?workflow_action=retract"
+          category="workflow">Retract</action>
+  <guard>
+   <guard-role>Manager</guard-role>
+  </guard>
+ </transition>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_section_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_section_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_section_wf/definition.xml	(revision 939)
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="waeup_section_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>View</permission>
+ <state state_id="static" title="">
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="cut_copy_paste"/>
+  <permission-map name="View" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <transition transition_id="create" title="Initial creation"
+             new_state="static" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionOfficer</guard-role>
+  </guard>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+ <transition transition_id="create_content"
+             title="Create content" new_state=""
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+   <guard-role>SectionReader</guard-role>
+   <guard-role>SectionOfficer</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+  <transition-behavior behavior_id="allow-sub-publishing"/>
+ </transition>
+ <transition transition_id="cut_copy_paste"
+             title="Cut/Copy/Paste" new_state=""
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>SectionReviewer</guard-role>
+   <guard-role>SectionReader</guard-role>
+   <guard-role>SectionOfficer</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-delete"/>
+  <transition-behavior behavior_id="allow-sub-move"/>
+  <transition-behavior behavior_id="allow-sub-copy"/>
+ </transition>
+ <script script_id="add_language_to_proxy"
+         type="Script (Python)"
+         filename="workflows/waeup_section_wf/scripts/add_language_to_proxy.py"/>
+ <script script_id="delete_language_from_proxy"
+         type="Script (Python)"
+         filename="workflows/waeup_section_wf/scripts/delete_language_from_proxy.py"/>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_section_wf/scripts/add_language_to_proxy.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_section_wf/scripts/add_language_to_proxy.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_section_wf/scripts/add_language_to_proxy.py	(revision 939)
@@ -0,0 +1,12 @@
+## Script (Python) "add_language_to_proxy"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+lang=state_change.kwargs.get('lang')
+from_lang=state_change.kwargs.get('from_lang')
+state_change.object.addLanguageToProxy(lang, from_lang)
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_section_wf/scripts/delete_language_from_proxy.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_section_wf/scripts/delete_language_from_proxy.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_section_wf/scripts/delete_language_from_proxy.py	(revision 939)
@@ -0,0 +1,11 @@
+## Script (Python) "delete_language_from_proxy"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+lang=state_change.kwargs.get('lang')
+state_change.object.delLanguageFromProxy(lang)
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_accommodation_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_accommodation_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_accommodation_wf/definition.xml	(revision 939)
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="waeup_student_accommodation_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>Add portal content</permission>
+ <permission>Modify portal content</permission>
+ <permission>View</permission>
+ <state state_id="bed_reserved" title="">
+  <exit-transition transition_id="pay_maintenance_fee"/>
+  <exit-transition transition_id="remove"/>
+  <permission-map name="Add portal content" acquired="True">
+  </permission-map>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>Owner</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="maintenance_fee_paid" title="">
+  <exit-transition transition_id="remove"/>
+ </state>
+ <state state_id="removed" title="">
+ </state>
+ <transition transition_id="pay_maintenance_fee" title=""
+             new_state="maintenance_fee_paid" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+  </guard>
+ </transition>
+ <transition transition_id="remove" title=""
+             new_state="removed" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+  </guard>
+ </transition>
+ <transition transition_id="reserve_bed" title=""
+             new_state="bed_reserved" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+  </guard>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_subobject_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_subobject_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_subobject_wf/definition.xml	(revision 939)
@@ -0,0 +1,121 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="waeup_student_subobject_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>Add portal content</permission>
+ <permission>Modify portal content</permission>
+ <permission>View</permission>
+ <state state_id="closed" title="">
+  <exit-transition transition_id="open"/>
+  <permission-map name="Add portal content" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>ClearanceOfficer</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="content_addable" title="">
+  <exit-transition transition_id="close"/>
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="open"/>
+  <permission-map name="Add portal content" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="created" title="">
+  <exit-transition transition_id="close"/>
+  <exit-transition transition_id="close_for_edit"/>
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="open"/>
+  <permission-map name="Add portal content" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Anonymous</permission-role>
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="opened" title="">
+  <exit-transition transition_id="close"/>
+  <exit-transition transition_id="close_for_edit"/>
+  <exit-transition transition_id="create_content"/>
+  <permission-map name="Add portal content" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <transition transition_id="close" title=""
+             new_state="closed" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>Owner</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="close_for_edit" title=""
+             new_state="content_addable" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+  </guard>
+ </transition>
+ <transition transition_id="create" title=""
+             new_state="created" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+ <transition transition_id="create_content" title=""
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  
+  <guard>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+ </transition>
+ <transition transition_id="open" title=""
+             new_state="opened" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>ClearanceOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+   <guard-role>Owner</guard-role>
+  </guard>
+ </transition>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml	(revision 939)
@@ -0,0 +1,345 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="waeup_student_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>Modify portal content</permission>
+ <permission>View</permission>
+ <state state_id="admission_applied" title="">
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="pume_fail"/>
+  <exit-transition transition_id="pume_pass"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="admission_rejected" title="">
+  <exit-transition transition_id="finally_reject"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="admitted" title="">
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="enter_clearance_pin"/>
+  <exit-transition transition_id="raise_objection"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="application_pin_entered" title="">
+  <exit-transition transition_id="apply_for_admission"/>
+  <exit-transition transition_id="create_content"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="clearance_pin_entered" title="">
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="request_clearance"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="clearance_requested" title="">
+  <exit-transition transition_id="clear_and_validate"/>
+  <exit-transition transition_id="defer"/>
+  <exit-transition transition_id="reject_clearance"/>
+  <exit-transition transition_id="create_content"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>ClearanceOfficer</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="cleared_and_validated" title="">
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="reject_clearance"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>ClearanceOfficer</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="deferred" title="">
+  <exit-transition transition_id="admit"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="finally_rejected" title="">
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>ClearanceOfficer</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="objection_raised" title="">
+  <exit-transition transition_id="enter_clearance_pin"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="pume_failed" title="">
+  <exit-transition transition_id="reject_admission"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="pume_passed" title="">
+  <exit-transition transition_id="admit"/>
+  <exit-transition transition_id="reject_admission"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="student_created" title="">
+  <exit-transition transition_id="admit"/>
+  <exit-transition transition_id="clear_and_validate"/>
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="enter_application_pin"/>
+  <exit-transition transition_id="pume_fail"/>
+  <exit-transition transition_id="pume_pass"/>
+  <exit-transition transition_id="reject_admission"/>
+  <permission-map name="Modify portal content"
+                  acquired="True">
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="True">
+   <permission-role>Owner</permission-role>
+   <permission-role>SectionOfficer</permission-role>
+  </permission-map>
+ </state>
+ <transition transition_id="admit" title=""
+             new_state="admitted" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>ClearanceOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="apply_for_admission" title=""
+             new_state="admission_applied" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>Owner</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="clear_and_validate" title=""
+             new_state="cleared_and_validated"
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>ClearanceOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="create" title=""
+             new_state="student_created" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+ <transition transition_id="create_content" title=""
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>Owner</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+ </transition>
+ <transition transition_id="defer" title=""
+             new_state="deferred" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>Owner</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="enter_application_pin" title=""
+             new_state="application_pin_entered"
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>Owner</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="enter_clearance_pin" title=""
+             new_state="clearance_pin_entered"
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>Owner</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="finally_reject" title=""
+             new_state="finally_rejected" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>ClearanceOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="pume_fail" title=""
+             new_state="pume_failed" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>ClearanceOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="pume_pass" title=""
+             new_state="pume_passed" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>ClearanceOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="raise_objection" title=""
+             new_state="objection_raised" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>Owner</guard-role>
+   <guard-role>ClearanceOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="reject_admission" title=""
+             new_state="admission_rejected" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>ClearanceOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="reject_clearance" title=""
+             new_state="clearance_pin_entered"
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>ClearanceOfficer</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="request_clearance" title=""
+             new_state="clearance_requested" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>SectionOfficer</guard-role>
+   <guard-role>Owner</guard-role>
+   <guard-role>Manager</guard-role>
+   <guard-role>SectionManager</guard-role>
+  </guard>
+ </transition>
+ <variable variable_id="time" for_catalog="True"
+           for_status="True" update_always="True">
+  <description>Time of the last transition</description>
+  <default>
+   
+   <expression>state_change/getDateTime</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <script script_id="open_application_personal"
+         type="Script (Python)"
+         filename="workflows/waeup_student_wf/scripts/open_application_personal.py"/>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/scripts/open_application_personal.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/scripts/open_application_personal.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/scripts/open_application_personal.py	(revision 939)
@@ -0,0 +1,11 @@
+## Script (Python) "open_application_personal"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+#state_change.object.application.content_status_modify(workflow_action="open")
+#state_change.object.personal.content_status_modify(workflow_action="open")
Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_workspace_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_workspace_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_workspace_wf/definition.xml	(revision 939)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="waeup_workspace_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/workspace_calendar_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/workspace_calendar_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/workspace_calendar_wf/definition.xml	(revision 939)
@@ -0,0 +1,132 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="workspace_calendar_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>Modify portal content</permission>
+ <permission>View</permission>
+ <permission>WebDAV Lock items</permission>
+ <permission>WebDAV Unlock items</permission>
+ <state state_id="work" title="Work">
+  <exit-transition transition_id="copy_submit"/>
+  <exit-transition transition_id="checkout_draft"/>
+  <exit-transition transition_id="cut_copy_paste"/>
+  <exit-transition transition_id="modify"/>
+  <permission-map name="Modify portal content"
+                  acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>Owner</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+   <permission-role>WorkspaceReader</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Lock items" acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>Owner</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Unlock items"
+                  acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>Owner</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+  </permission-map>
+ </state>
+ <transition transition_id="create" title="Initial creation"
+             new_state="work" trigger="USER"
+             before_script=""
+             after_script="give_attendee_manager">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+ <transition transition_id="cut_copy_paste"
+             title="Cut/Copy/Paste" new_state=""
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-move"/>
+  <transition-behavior behavior_id="allow-sub-delete"/>
+  <transition-behavior behavior_id="allow-sub-copy"/>
+ </transition>
+ <transition transition_id="modify"
+             title="Modification of content,provides a specific entry in status history"
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>Owner</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+ </transition>
+ <variable variable_id="action" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>The last transition</description>
+  <default>
+   
+   <expression>transition/getId|nothing</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="actor" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>The ID of the user who performed</description>
+  <default>
+   
+   <expression>user/getId</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="comments" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>Comments about the last transition</description>
+  <default>
+   
+   <expression>python:state_change.kwargs.get('comment', '')</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="dest_container" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>Destination container for the last paste/publish</description>
+  <default>
+   
+   <expression>python:state_change.kwargs.get('dest_container', '')</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="time" for_catalog="True"
+           for_status="True" update_always="True">
+  <description>Time of the last transition</description>
+  <default>
+   
+   <expression>state_change/getDateTime</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <script script_id="give_attendee_manager"
+         type="Script (Python)"
+         filename="workflows/workspace_calendar_wf/scripts/give_attendee_manager.py"/>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/workspace_calendar_wf/scripts/give_attendee_manager.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/workspace_calendar_wf/scripts/give_attendee_manager.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/workspace_calendar_wf/scripts/give_attendee_manager.py	(revision 939)
@@ -0,0 +1,15 @@
+## Script (Python) "give_attendee_manager"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+context = state_change.object 
+from Products.CMFCore.utils import getToolByName       
+mtool = getToolByName(context, 'portal_membership')
+user_id = mtool.getAuthenticatedMember().getUser().getId()
+mtool.setLocalRoles(context, [user_id],
+                        'AttendeeManager', reindex=1)
Index: WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/definition.xml	(revision 939)
@@ -0,0 +1,304 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="workspace_content_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>Modify portal content</permission>
+ <permission>View</permission>
+ <permission>WebDAV Lock items</permission>
+ <permission>WebDAV Unlock items</permission>
+ <state state_id="draft" title="Draft">
+  <exit-transition transition_id="checkin_draft"/>
+  <exit-transition transition_id="abandon_draft"/>
+  <exit-transition transition_id="unlock"/>
+  <permission-map name="Modify portal content"
+                  acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>Owner</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+   <permission-role>Owner</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Lock items" acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>Owner</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Unlock items"
+                  acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>Owner</permission-role>
+  </permission-map>
+ </state>
+ <state state_id="locked" title="Locked">
+  <exit-transition transition_id="unlock"/>
+  <permission-map name="Modify portal content"
+                  acquired="False">
+  </permission-map>
+  <permission-map name="View" acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+   <permission-role>WorkspaceReader</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Lock items" acquired="False">
+  </permission-map>
+  <permission-map name="WebDAV Unlock items"
+                  acquired="False">
+  </permission-map>
+ </state>
+ <state state_id="work" title="Work">
+  <exit-transition transition_id="copy_submit"/>
+  <exit-transition transition_id="checkout_draft"/>
+  <exit-transition transition_id="cut_copy_paste"/>
+  <exit-transition transition_id="modify"/>
+  <exit-transition transition_id="translate"/>
+  <exit-transition transition_id="delete_translation"/>
+  <permission-map name="Modify portal content"
+                  acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>Owner</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+   <permission-role>WorkspaceReader</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Lock items" acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>Owner</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Unlock items"
+                  acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>Owner</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+  </permission-map>
+ </state>
+ <transition transition_id="abandon_draft"
+             title="Abandon draft" new_state=""
+             trigger="USER"
+             before_script="unlock_locked_before_abandon"
+             after_script="">
+  <action url="%(content_url)s/content_abandon_draft_form"
+          category="workflow">action_abandon_draft</action>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>Owner</guard-role>
+  </guard>
+  <transition-behavior behavior_id="delete"/>
+ </transition>
+ <transition transition_id="checkin_draft"
+             title="Checkin draft" new_state="locked"
+             trigger="USER" before_script="" after_script="">
+  <action url="%(content_url)s/content_checkin_draft_form"
+          category="workflow">action_checkin_draft</action>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>Owner</guard-role>
+  </guard>
+  <transition-behavior behavior_id="checkin"/>
+  <checkin-allowed-transition transition_id="unlock"/>
+ </transition>
+ <transition transition_id="checkout_draft"
+             title="Checkout content into a draft"
+             new_state="locked" trigger="USER"
+             before_script="" after_script="">
+  <action url="%(content_url)s/content_checkout_draft_form"
+          category="workflow">action_checkout_draft</action>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="checkout"/>
+  <checkout-allowed-initial-transition
+    transition_id="checkout_draft_in"/>
+ </transition>
+ <transition transition_id="checkout_draft_in"
+             title="Draft is created" new_state="draft"
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+  </guard>
+  <transition-behavior behavior_id="initial-checkout"/>
+  <transition-behavior behavior_id="freeze"/>
+ </transition>
+ <transition transition_id="copy_submit"
+             title="Copy content into a section for Publishing"
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  <action url="%(content_url)s/content_submit_form"
+          category="workflow">action_submit</action>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="clone"/>
+  <clone-allowed-transition transition_id="submit"/>
+  <clone-allowed-transition transition_id="publish"/>
+ </transition>
+ <transition transition_id="create" title="Initial creation"
+             new_state="work" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+ <transition transition_id="cut_copy_paste"
+             title="Cut/Copy/Paste" new_state=""
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-move"/>
+  <transition-behavior behavior_id="allow-sub-delete"/>
+  <transition-behavior behavior_id="allow-sub-copy"/>
+ </transition>
+ <transition transition_id="delete_translation"
+             title="Delete a translation" new_state=""
+             trigger="USER"
+             before_script="delete_language_from_proxy"
+             after_script="">
+  
+  <guard>
+   <guard-permission>Modify portal content</guard-permission>
+   <guard-expression>python:not state_change.object.isDefaultLanguage()</guard-expression>
+  </guard>
+ </transition>
+ <transition transition_id="modify" title="Edit content"
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  <description>This transition provides a specific entry in status history</description>
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>Owner</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="translate"
+             title="Add translation" new_state=""
+             trigger="USER"
+             before_script="add_language_to_proxy"
+             after_script="">
+  
+  <guard>
+   <guard-permission>Modify portal content</guard-permission>
+  </guard>
+ </transition>
+ <transition transition_id="unlock"
+             title="Unlock content after a draft is done"
+             new_state="work" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+  </guard>
+  <transition-behavior behavior_id="allow-checkin"/>
+ </transition>
+ <variable variable_id="action" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>The last transition</description>
+  <default>
+   
+   <expression>transition/getId|nothing</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="actor" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>The ID of the user who performed</description>
+  <default>
+   
+   <expression>user/getId</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="comments" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>Comments about the last transition</description>
+  <default>
+   
+   <expression>python:state_change.kwargs.get('comment', '')</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="dest_container" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>Destination container for the last paste/publish</description>
+  <default>
+   
+   <expression>python:state_change.kwargs.get('dest_container', '')</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="language_revs" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>The language revisions of the proxy</description>
+  <default>
+   
+   <expression>state_change/getLanguageRevisions</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="review_history" for_catalog="False"
+           for_status="False" update_always="False">
+  <description>Provides access to workflow history</description>
+  <default>
+   
+   <expression>state_change/getHistory</expression>
+  </default>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+   <guard-role>WorkspaceReader</guard-role>
+  </guard>
+ </variable>
+ <variable variable_id="time" for_catalog="True"
+           for_status="True" update_always="True">
+  <description>Time of the last transition</description>
+  <default>
+   
+   <expression>state_change/getDateTime</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <script script_id="add_language_to_proxy"
+         type="Script (Python)"
+         filename="workflows/workspace_content_wf/scripts/add_language_to_proxy.py"/>
+ <script script_id="delete_language_from_proxy"
+         type="Script (Python)"
+         filename="workflows/workspace_content_wf/scripts/delete_language_from_proxy.py"/>
+ <script script_id="unlock_locked_before_abandon"
+         type="Script (Python)"
+         filename="workflows/workspace_content_wf/scripts/unlock_locked_before_abandon.py"/>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/scripts/add_language_to_proxy.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/scripts/add_language_to_proxy.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/scripts/add_language_to_proxy.py	(revision 939)
@@ -0,0 +1,12 @@
+## Script (Python) "add_language_to_proxy"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+lang=state_change.kwargs.get('lang')
+from_lang=state_change.kwargs.get('from_lang')
+state_change.object.addLanguageToProxy(lang, from_lang)
Index: WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/scripts/delete_language_from_proxy.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/scripts/delete_language_from_proxy.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/scripts/delete_language_from_proxy.py	(revision 939)
@@ -0,0 +1,11 @@
+## Script (Python) "delete_language_from_proxy"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+lang=state_change.kwargs.get('lang')
+state_change.object.delLanguageFromProxy(lang)
Index: WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/scripts/unlock_locked_before_abandon.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/scripts/unlock_locked_before_abandon.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/workspace_content_wf/scripts/unlock_locked_before_abandon.py	(revision 939)
@@ -0,0 +1,10 @@
+## Script (Python) "unlock_locked_before_abandon"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+return state_change.object.content_unlock_locked_before_abandon(state_change)
Index: WAeUP_SRP/trunk/profiles/default/workflows/workspace_folder_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/workspace_folder_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/workspace_folder_wf/definition.xml	(revision 939)
@@ -0,0 +1,95 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="workspace_folder_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>View</permission>
+ <state state_id="work" title="Work">
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="cut_copy_paste"/>
+  <exit-transition transition_id="modify"/>
+  <exit-transition transition_id="translate"/>
+  <exit-transition transition_id="delete_translation"/>
+  <permission-map name="View" acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+   <permission-role>WorkspaceReader</permission-role>
+  </permission-map>
+ </state>
+ <transition transition_id="create" title="Initial creation"
+             new_state="work" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+ <transition transition_id="create_content"
+             title="Create content" new_state="work"
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+  <transition-behavior behavior_id="allow-sub-checkout"/>
+ </transition>
+ <transition transition_id="cut_copy_paste"
+             title="Cut/Copy/Paste" new_state=""
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-move"/>
+  <transition-behavior behavior_id="allow-sub-delete"/>
+  <transition-behavior behavior_id="allow-sub-copy"/>
+ </transition>
+ <transition transition_id="delete_translation"
+             title="Delete a translation" new_state=""
+             trigger="USER"
+             before_script="delete_language_from_proxy"
+             after_script="">
+  
+  <guard>
+   <guard-permission>Modify portal content</guard-permission>
+   <guard-expression>python:not state_change.object.isDefaultLanguage()</guard-expression>
+  </guard>
+ </transition>
+ <transition transition_id="modify" title="Edit content"
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  <description>This transition provides a specific entry in status history</description>
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>Owner</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+ </transition>
+ <transition transition_id="translate"
+             title="Add translation" new_state=""
+             trigger="USER"
+             before_script="add_language_to_proxy"
+             after_script="">
+  
+  <guard>
+   <guard-permission>Modify portal content</guard-permission>
+  </guard>
+ </transition>
+ <script script_id="add_language_to_proxy"
+         type="Script (Python)"
+         filename="workflows/workspace_folder_wf/scripts/add_language_to_proxy.py"/>
+ <script script_id="delete_language_from_proxy"
+         type="Script (Python)"
+         filename="workflows/workspace_folder_wf/scripts/delete_language_from_proxy.py"/>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows/workspace_folder_wf/scripts/add_language_to_proxy.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/workspace_folder_wf/scripts/add_language_to_proxy.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/workspace_folder_wf/scripts/add_language_to_proxy.py	(revision 939)
@@ -0,0 +1,12 @@
+## Script (Python) "add_language_to_proxy"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+lang=state_change.kwargs.get('lang')
+from_lang=state_change.kwargs.get('from_lang')
+state_change.object.addLanguageToProxy(lang, from_lang)
Index: WAeUP_SRP/trunk/profiles/default/workflows/workspace_folder_wf/scripts/delete_language_from_proxy.py
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/workspace_folder_wf/scripts/delete_language_from_proxy.py	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/workspace_folder_wf/scripts/delete_language_from_proxy.py	(revision 939)
@@ -0,0 +1,11 @@
+## Script (Python) "delete_language_from_proxy"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=state_change
+##title=
+##
+lang=state_change.kwargs.get('lang')
+state_change.object.delLanguageFromProxy(lang)
Index: WAeUP_SRP/trunk/profiles/default/workflows/workspace_folderish_content_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/workspace_folderish_content_wf/definition.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows/workspace_folderish_content_wf/definition.xml	(revision 939)
@@ -0,0 +1,176 @@
+<?xml version="1.0"?>
+<cps-workflow workflow_id="workspace_folderish_content_wf"
+              title="CPS Workflow Definition"
+              state_variable="review_state"
+              meta_type="CPS Workflow">
+ <permission>Modify portal content</permission>
+ <permission>View</permission>
+ <permission>WebDAV Lock items</permission>
+ <permission>WebDAV Unlock items</permission>
+ <state state_id="work" title="Work">
+  <exit-transition transition_id="copy_submit"/>
+  <exit-transition transition_id="create_content"/>
+  <exit-transition transition_id="cut_copy_paste"/>
+  <exit-transition transition_id="modify"/>
+  <permission-map name="Modify portal content"
+                  acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+  </permission-map>
+  <permission-map name="View" acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+   <permission-role>WorkspaceReader</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Lock items" acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+  </permission-map>
+  <permission-map name="WebDAV Unlock items"
+                  acquired="False">
+   <permission-role>Manager</permission-role>
+   <permission-role>WorkspaceManager</permission-role>
+   <permission-role>WorkspaceMember</permission-role>
+  </permission-map>
+ </state>
+ <transition transition_id="copy_submit"
+             title="Copy content into a section for Publishing"
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  <action url="%(content_url)s/content_submit_form"
+          category="workflow">action_submit</action>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="clone"/>
+  <clone-allowed-transition transition_id="submit"/>
+  <clone-allowed-transition transition_id="publish"/>
+ </transition>
+ <transition transition_id="create" title="Initial creation"
+             new_state="work" trigger="USER"
+             before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="initial-create"/>
+ </transition>
+ <transition transition_id="create_content"
+             title="Create content" new_state="work"
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-create"/>
+  <transition-behavior behavior_id="allow-sub-checkout"/>
+ </transition>
+ <transition transition_id="cut_copy_paste"
+             title="Cut/Copy/Paste" new_state=""
+             trigger="USER" before_script="" after_script="">
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+  <transition-behavior behavior_id="allow-sub-move"/>
+  <transition-behavior behavior_id="allow-sub-delete"/>
+  <transition-behavior behavior_id="allow-sub-copy"/>
+ </transition>
+ <transition transition_id="modify" title="Edit content"
+             new_state="" trigger="USER" before_script=""
+             after_script="">
+  <description>This transition provides a specific entry in status history</description>
+  
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>Owner</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+  </guard>
+ </transition>
+ <variable variable_id="action" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>The last transition</description>
+  <default>
+   
+   <expression>transition/getId|nothing</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="actor" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>The ID of the user who performed</description>
+  <default>
+   
+   <expression>user/getId</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="comments" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>Comments about the last transition</description>
+  <default>
+   
+   <expression>python:state_change.kwargs.get('comment', '')</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="dest_container" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>Destination container for the last paste/publish</description>
+  <default>
+   
+   <expression>python:state_change.kwargs.get('dest_container', '')</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="language_revs" for_catalog="False"
+           for_status="True" update_always="True">
+  <description>The language revisions of the proxy</description>
+  <default>
+   
+   <expression>state_change/getLanguageRevisions</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+ <variable variable_id="review_history" for_catalog="False"
+           for_status="False" update_always="False">
+  <description>Provides access to workflow history</description>
+  <default>
+   
+   <expression>state_change/getHistory</expression>
+  </default>
+  <guard>
+   <guard-role>Manager</guard-role>
+   <guard-role>WorkspaceManager</guard-role>
+   <guard-role>WorkspaceMember</guard-role>
+   <guard-role>WorkspaceReader</guard-role>
+  </guard>
+ </variable>
+ <variable variable_id="time" for_catalog="True"
+           for_status="True" update_always="True">
+  <description>Time of the last transition</description>
+  <default>
+   
+   <expression>state_change/getDateTime</expression>
+  </default>
+  <guard>
+  </guard>
+ </variable>
+</cps-workflow>
Index: WAeUP_SRP/trunk/profiles/default/workflows_old.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows_old.xml	(revision 939)
+++ WAeUP_SRP/trunk/profiles/default/workflows_old.xml	(revision 939)
@@ -0,0 +1,131 @@
+<?xml version="1.0"?>
+<object name="portal_workflow" meta_type="CPS Workflow Tool">
+ <property name="title"></property>
+ <object name="section_content_wf" meta_type="CPS Workflow"/>
+ <object name="section_folder_wf" meta_type="CPS Workflow"/>
+ <object name="waeup_accommodation_wf" meta_type="CPS Workflow"/>
+ <object name="waeup_base_wf" meta_type="CPS Workflow"/>
+ <object name="waeup_section_wf" meta_type="CPS Workflow"/>
+ <object name="waeup_student_accommodation_wf" meta_type="CPS Workflow"/>
+ <object name="waeup_student_subobject_wf" meta_type="CPS Workflow"/>
+ <object name="waeup_student_wf" meta_type="CPS Workflow"/>
+ <object name="waeup_workspace_wf" meta_type="CPS Workflow"/>
+ <object name="workspace_calendar_wf" meta_type="CPS Workflow"/>
+ <object name="workspace_content_wf" meta_type="CPS Workflow"/>
+ <object name="workspace_folder_wf" meta_type="CPS Workflow"/>
+ <object name="workspace_folderish_content_wf" meta_type="CPS Workflow"/>
+ <bindings>
+  <default/>
+  <type type_id="AcademicsFolder">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="AccoFolder">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="AccoHall">
+   <bound-workflow workflow_id="waeup_accommodation_wf"/>
+  </type>
+  <type type_id="Accommodation">
+   <bound-workflow workflow_id="waeup_accommodation_wf"/>
+  </type>
+  <type type_id="CPS Calendar">
+   <bound-workflow workflow_id="workspace_calendar_wf"/>
+  </type>
+  <type type_id="Certificate">
+   <bound-workflow workflow_id="waeup_base_wf"/>
+  </type>
+  <type type_id="CertificateCourse">
+   <bound-workflow workflow_id="waeup_base_wf"/>
+  </type>
+  <type type_id="CertificatesFolder">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="Course">
+   <bound-workflow workflow_id="waeup_base_wf"/>
+  </type>
+  <type type_id="CourseTicket">
+   <bound-workflow workflow_id="waeup_base_wf"/>
+  </type>
+  <type type_id="CoursesFolder">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="Department">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="Faculty">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="Jamb">
+   <bound-workflow workflow_id="waeup_base_wf"/>
+  </type>
+  <type type_id="Members Workspace">
+   <bound-workflow workflow_id="workspace_folder_wf"/>
+  </type>
+  <type type_id="ScratchCardBatch">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="ScratchCardBatchesFolder">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="Section">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="Semester">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="Student">
+   <bound-workflow workflow_id="waeup_student_wf"/>
+  </type>
+  <type type_id="StudentAccommodation">
+   <bound-workflow workflow_id="waeup_student_accommodation_wf"/>
+  </type>
+  <type type_id="StudentAdmission">
+   <bound-workflow workflow_id="waeup_student_wf"/>
+  </type>
+  <type type_id="StudentApplication">
+   <bound-workflow workflow_id="waeup_student_subobject_wf"/>
+  </type>
+  <type type_id="StudentClearance">
+   <bound-workflow workflow_id="waeup_student_subobject_wf"/>
+  </type>
+  <type type_id="StudentCourseResult">
+   <bound-workflow workflow_id="waeup_student_subobject_wf"/>
+  </type>
+  <type type_id="StudentDocuments">
+   <bound-workflow workflow_id="waeup_base_wf"/>
+  </type>
+  <type type_id="StudentElegibility">
+   <bound-workflow workflow_id="waeup_base_wf"/>
+  </type>
+  <type type_id="StudentEligibility">
+   <bound-workflow workflow_id="waeup_base_wf"/>
+  </type>
+  <type type_id="StudentPersonal">
+   <bound-workflow workflow_id="waeup_student_subobject_wf"/>
+  </type>
+  <type type_id="StudentPume">
+   <bound-workflow workflow_id="waeup_student_subobject_wf"/>
+  </type>
+  <type type_id="StudentSemester">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="StudentStudyCourse">
+   <bound-workflow workflow_id="waeup_student_subobject_wf"/>
+  </type>
+  <type type_id="StudentStudyLevel">
+   <bound-workflow workflow_id="waeup_course_registration_wf"/>
+  </type>
+  <type type_id="StudentsFolder">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="StudyLevel">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="University">
+   <bound-workflow workflow_id="section_folder_wf"/>
+  </type>
+  <type type_id="Workspace">
+   <bound-workflow workflow_id="workspace_folder_wf"/>
+  </type>
+ </bindings>
+</object>
