aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-09-04 18:26:28 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-09-04 18:26:28 -0500
commitb998d80be469cd1bf49085462cb51a0a02350585 (patch)
treed731e2d0b3b6380db61c61a90114361798bc0d79
parent63e7abdf0f7696bca7695f23694b1cfdeb88bd73 (diff)
downloadmediagoblin-b998d80be469cd1bf49085462cb51a0a02350585.tar.lz
mediagoblin-b998d80be469cd1bf49085462cb51a0a02350585.tar.xz
mediagoblin-b998d80be469cd1bf49085462cb51a0a02350585.zip
I can't believe I checked in my debugging garbage, removed!
-rw-r--r--mediagoblin/util.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/mediagoblin/util.py b/mediagoblin/util.py
index 410b1c9a..7ff3ec7f 100644
--- a/mediagoblin/util.py
+++ b/mediagoblin/util.py
@@ -349,12 +349,7 @@ def get_locale_from_request(request):
Figure out what target language is most appropriate based on the
request
"""
- if request.method == 'GET':
- request_form = request.GET
- else:
- import pdb
- pdb.set_trace()
- request_form = request.POST
+ request_form = request.GET or request.POST
if request_form.has_key('lang'):
return locale_to_lower_upper(request_form['lang'])