Adding some early Notifications stubs

* A basic NotificationTemplate model class with early notification type
  definitions
* Initial implementations of the Email, Slack, and Twilio Notification
  backends using the Django email backend system
* Some dependencies thereof
This commit is contained in:
Matthew Jones
2016-02-01 16:54:34 -05:00
parent 6d71fe49f2
commit 7385efef35
7 changed files with 139 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# Copyright (c) 2016 Ansible, Inc.
# All Rights Reserved.
import logging
from django.core.mail.backends.smtp import EmailBackend
class CustomEmailBackend(EmailBackend):
init_parameters = ("host", "port", "username", "password",
"use_tls", "use_ssl")