-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send email notification when a new instance is registered & allow boolean values #15
Conversation
cephalopod/api/instance.py
Outdated
from sqlalchemy.exc import SQLAlchemyError | ||
|
||
from cephalopod.utils import send_email |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
relative import until we change them all
@@ -0,0 +1,8 @@ | |||
A new instance has been registered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:
at the end of the line
Contact: {{ instance.contact }} | ||
Email: {{ instance.email }} | ||
|
||
{{ url_for('frontend.get_server', id=instance.id, _external=True) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lowercase true
requirements.txt
Outdated
@@ -21,3 +21,4 @@ psycopg2==2.7.1 | |||
libsass==0.12.3 | |||
IPython | |||
flask-shell-ipython | |||
Flask-Mail==0.9.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd move this up next to the other Flask-*
packages
cephalopod/utils.py
Outdated
@@ -7,6 +7,9 @@ | |||
import pkg_resources | |||
from flask import current_app | |||
from flask.helpers import get_root_path | |||
from flask_mail import Message | |||
|
|||
from cephalopod.core import mail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be safer to move this import inside the function. i wouldn't expect utils to import core
f4c9e87
to
80a80de
Compare
E.g. debug mode
No description provided.