# HG changeset patch # User Thierry Florac # Date 1466778325 -7200 # Node ID 1ccb516d65a39c7303ae83fe1d4412ca968f9882 # Parent 5e3445ae73be555a4a64fc99c59db6fb8a4b8b7f Changed transition attribute name for notified roles diff -r 5e3445ae73be -r 1ccb516d65a3 src/pyams_notify/handlers/workflow.py --- a/src/pyams_notify/handlers/workflow.py Thu Jun 02 15:59:13 2016 +0200 +++ b/src/pyams_notify/handlers/workflow.py Fri Jun 24 16:25:25 2016 +0200 @@ -37,7 +37,7 @@ if request is None: return transition = event.transition - if transition.user_data.get('notify') is None: + if transition.user_data.get('notify_roles') is None: return translate = request.localizer.translate notification = Notification(request=request, @@ -55,7 +55,7 @@ """Content workflow transition notification handler""" def get_target(self): - notified_roles = self.context.user_data['transition'].user_data['notify'] + notified_roles = self.context.user_data['transition'].user_data['notify_roles'] if '*' in notified_roles: return {} principals = set()