aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools
diff options
context:
space:
mode:
authorJoar Wandborg <git@wandborg.com>2012-09-29 21:07:15 +0200
committerJoar Wandborg <git@wandborg.com>2012-09-29 21:08:20 +0200
commit111a609df526bd3690fc03e623eaf5826f33f4d2 (patch)
tree87029ee907afd4f35896ddfe582437b59747dccc /mediagoblin/tools
parenta6ec38c3c1caf4735f2da45a12fb2d0a5861d830 (diff)
downloadmediagoblin-111a609df526bd3690fc03e623eaf5826f33f4d2.tar.lz
mediagoblin-111a609df526bd3690fc03e623eaf5826f33f4d2.tar.xz
mediagoblin-111a609df526bd3690fc03e623eaf5826f33f4d2.zip
Replaced all request.POST with request.form, ...
- Fixed error handling in OAuth plugin - Changed request.POST file fields to request.files
Diffstat (limited to 'mediagoblin/tools')
-rw-r--r--mediagoblin/tools/translate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tools/translate.py b/mediagoblin/tools/translate.py
index 71c3b793..cdc827a0 100644
--- a/mediagoblin/tools/translate.py
+++ b/mediagoblin/tools/translate.py
@@ -60,7 +60,7 @@ def get_locale_from_request(request):
Figure out what target language is most appropriate based on the
request
"""
- request_form = request.GET or request.POST
+ request_form = request.GET or request.form
if request_form.has_key('lang'):
return locale_to_lower_upper(request_form['lang'])