Add support for the remaining events to the frontend and the backend

This commit is contained in:
Joseph Schorr 2014-07-18 15:58:18 -04:00
parent f7c154abb5
commit af31bde997
7 changed files with 269 additions and 40 deletions

View file

@ -98,10 +98,10 @@ class EmailMethod(NotificationMethod):
if not email:
return False
msg = Message(event_handler.get_summary(notification_data),
msg = Message(event_handler.get_summary(notification_data['event_data'], notification_data),
sender='support@quay.io',
recipients=[email])
msg.html = event_handler.get_message(notification_data)
msg.html = event_handler.get_message(notification_data['event_data'], notification_data)
try:
with app.app_context():