changeset 3557:ea471747d5aa

fix failure with browsers not sending "Accept-Language" header [SF#1429646]
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 12 Feb 2006 11:00:23 +0000
parents 878dc6cf6690
children ca030541fada
files roundup/cgi/client.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/client.py	Fri Feb 10 03:48:44 2006 +0000
+++ b/roundup/cgi/client.py	Sun Feb 12 11:00:23 2006 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.222 2006-02-09 23:53:11 richard Exp $
+# $Id: client.py,v 1.223 2006-02-12 11:00:23 a1s Exp $
 
 """WWW request handler (also used in the stand-alone server).
 """
@@ -411,7 +411,7 @@
         elif self.cookie.has_key("roundup_language"):
             language = self.cookie["roundup_language"].value
         elif self.instance.config["WEB_USE_BROWSER_LANGUAGE"]:
-            hal = self.env['HTTP_ACCEPT_LANGUAGE']
+            hal = self.env.get('HTTP_ACCEPT_LANGUAGE')
             language = accept_language.parse(hal)
         else:
             language = ""

Roundup Issue Tracker: http://roundup-tracker.org/