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: Created May 29, 2016, 1:26 p.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
« no previous file with comments | « sitescripts/reports/web/showDigest.py ('k') | sitescripts/stats/bin/logprocessor.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.'
)
« no previous file with comments | « sitescripts/reports/web/showDigest.py ('k') | sitescripts/stats/bin/logprocessor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld