Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/send_installation_link/web/send_installation_link.py

Issue 29345242: Noissue - Adapt quotes for compliance with our coding style in sitescripts (Closed)
Patch Set: Fixed raw string Created May 30, 2016, 8:47 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.'
)

Powered by Google App Engine
This is Rietveld