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

Unified Diff: sitescripts/urlfixer/web/submitData.py

Issue 8771229: Removed database connection caching from /submitData (Closed)
Patch Set: Created Nov. 16, 2012, 9:56 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/urlfixer/web/submitData.py
===================================================================
--- a/sitescripts/urlfixer/web/submitData.py
+++ b/sitescripts/urlfixer/web/submitData.py
@@ -22,7 +22,7 @@
@url_handler("/submitData")
def submit_data(environ, start_response):
- setupStderr(environ['wsgi.errors'])
+ setupStderr(environ["wsgi.errors"])
if environ["REQUEST_METHOD"].upper() != "POST":
return showError("Unsupported request method", start_response)
@@ -60,7 +60,6 @@
start_response("400 Processing Error", [("Content-Type", "text/plain; charset=utf-8")])
return [message.encode("utf-8")]
-@cached(600)
def _get_db():
database = get_config().get("urlfixer", "database")
dbuser = get_config().get("urlfixer", "dbuser")
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld