Changed transition attribute name for notified roles
authorThierry Florac <thierry.florac@onf.fr>
Fri, 24 Jun 2016 16:28:12 +0200
changeset 49 393b306a69db
parent 48 0d9128d5580d
child 50 06c4fcde82bc
Changed transition attribute name for notified roles
src/pyams_content/workflow/__init__.py
--- a/src/pyams_content/workflow/__init__.py	Fri Jun 24 16:27:19 2016 +0200
+++ b/src/pyams_content/workflow/__init__.py	Fri Jun 24 16:28:12 2016 +0200
@@ -236,7 +236,7 @@
                                history_label=_("Publication request"),
                                next_step=_("content managers authorized to take charge of your content are going to "
                                            "be notified of your request."),
-                               notify={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
+                               notify_roles={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
                                notify_message=_("A publication request has been submitted for content « {0} »"),
                                order=1)
 
@@ -251,7 +251,7 @@
                                  history_label=_("Publication request"),
                                  next_step=_("content managers authorized to take charge of your content are going to "
                                              "be notified of your request."),
-                                 notify={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
+                                 notify_roles={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
                                  notify_message=_("A new publication request has been submitted for content « {0} »"),
                                  order=1)
 
@@ -264,7 +264,7 @@
                                   menu_css_class='fa fa-fw fa-mail-reply',
                                   view_name='wf-cancel-propose.html',
                                   history_label=_("Publication request canceled"),
-                                  notify={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
+                                  notify_roles={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
                                   notify_message=_("The publication request for content « {0} » has been cancelled"),
                                   order=2)
 
@@ -293,7 +293,7 @@
                                  menu_css_class='fa fa-fw fa-thumbs-o-down',
                                  view_name='wf-refuse.html',
                                  history_label=_("Publication refused"),
-                                 notify={'pyams.Owner'},
+                                 notify_roles={'pyams.Owner'},
                                  notify_message=_("The publication request for content « {0} » has been refused"),
                                  order=3)
 
@@ -323,7 +323,7 @@
                                    menu_css_class='fa fa-fw fa-thumbs-o-up',
                                    view_name='wf-publish.html',
                                    history_label=_("Content published"),
-                                   notify={'*'},
+                                   notify_roles={'*'},
                                    notify_message=_("The content « {0} » has been published"),
                                    order=4)
 
@@ -337,7 +337,7 @@
                                    history_label=_("Retire request"),
                                    next_step=_("content managers authorized to take charge of your content are going "
                                                "to be notified of your request."),
-                                   notify={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
+                                   notify_roles={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
                                    notify_message=_("A retire request has been submitted for content « {0} »"),
                                    order=7)
 
@@ -350,7 +350,7 @@
                                    menu_css_class='fa fa-fw fa-mail-reply',
                                    view_name='wf-cancel-retiring.html',
                                    history_label=_("Retire request canceled"),
-                                   notify={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
+                                   notify_roles={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
                                    notify_message=_("The retiring request for content « {0} » has been cancelled"),
                                    order=8)
 
@@ -363,7 +363,7 @@
                                  menu_css_class='fa fa-fw fa-stop',
                                  view_name='wf-retire.html',
                                  history_label=_("Content retired"),
-                                 notify={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
+                                 notify_roles={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
                                  notify_message=_("The content « {0} » has been retired"),
                                  order=9)
 
@@ -377,7 +377,7 @@
                                   history_label=_("Archive request"),
                                   next_step=_("content managers authorized to take charge of your content are going to "
                                               "be notified of your request."),
-                                  notify={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
+                                  notify_roles={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
                                   notify_message=_("An archive request has been submitted for content « {0} »"),
                                   order=10)
 
@@ -390,7 +390,7 @@
                                   menu_css_class='fa fa-fw fa-mail-reply',
                                   view_name='wf-cancel-archiving.html',
                                   history_label=_("Archive request canceled"),
-                                  notify={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
+                                  notify_roles={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
                                   notify_message=_("The archive request for content « {0} » has been cancelled"),
                                   order=11)
 
@@ -404,7 +404,7 @@
                                    menu_css_class='fa fa-fw fa-archive',
                                    view_name='wf-archive.html',
                                    history_label=_("Content archived"),
-                                   notify={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
+                                   notify_roles={'pyams.Webmaster', 'pyams.Pilot', 'pyams.Manager', 'pyams.Owner'},
                                    notify_message=_("The content « {0} » has been archived"),
                                    order=12)