I can't believe I checked in my debugging garbage, removed!
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 4 Sep 2011 23:26:28 +0000 (18:26 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 4 Sep 2011 23:26:28 +0000 (18:26 -0500)
mediagoblin/util.py

index 410b1c9aa48fe89a41fa2c8a435dc1a277b011cd..7ff3ec7f81ba38559850ef84cb4077ae0b812c90 100644 (file)
@@ -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'])