Index: sitescripts/send_installation_link/web/send_installation_link.py |
=================================================================== |
--- a/sitescripts/send_installation_link/web/send_installation_link.py |
+++ b/sitescripts/send_installation_link/web/send_installation_link.py |
@@ -17,24 +17,24 @@ |
from sitescripts.web import url_handler, form_handler, send_simple_response |
-@url_handler("/sendInstallationLink") |
+@url_handler('/sendInstallationLink') |
@form_handler |
def send_installation_link(environ, start_response, data): |
- email = data.get("email", "").strip() |
+ email = data.get('email', '').strip() |
try: |
email = encode_email_address(email) |
except ValueError: |
return send_simple_response( |
start_response, 400, |
- "Please enter a valid email address." |
+ 'Please enter a valid email address.' |
) |
config = get_config() |
- template_path = config.get("send_installation_link", "email_template") |
- sendMail(template_path, {"recipient": email}) |
+ template_path = config.get('send_installation_link', 'email_template') |
+ sendMail(template_path, {'recipient': email}) |
return send_simple_response( |
start_response, 200, |
- "The app is on the way! " |
- "Please check your email on your smartphone or tablet." |
+ 'The app is on the way! ' |
+ 'Please check your email on your smartphone or tablet.' |
) |