Skip to content
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

Merged
merged 2 commits into from
Jul 26, 2017

Conversation

mvidalgarcia
Copy link
Member

No description provided.

from sqlalchemy.exc import SQLAlchemyError

from cephalopod.utils import send_email
Copy link
Member

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
Copy link
Member

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) }}
Copy link
Member

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
Copy link
Member

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

@@ -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
Copy link
Member

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

@mvidalgarcia mvidalgarcia changed the title Send email notification when a new instance is registered Send email notification when a new instance is registered & allow boolean values Jul 24, 2017
@mvidalgarcia mvidalgarcia merged commit 6efe46c into indico:master Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants