--
Greetings, alo
http://www.alobbs.com/

On 07/05/2009, at 14:55, SVN @ cherokee-project.com <[email protected] > wrote:

Revision
3202
Author
aperez
Date
2009-05-07 14:55:49 +0200 (Thu, 07 May 2009)
Log Message

Modified Paths

cherokee/trunk/ChangeLog
cherokee/trunk/admin/server.py
Diff

Modified: cherokee/trunk/ChangeLog (3201 => 3202)

--- cherokee/trunk/ChangeLog    2009-05-06 11:35:32 UTC (rev 3201)
+++ cherokee/trunk/ChangeLog    2009-05-07 12:55:49 UTC (rev 3202)
@@ -1,5 +1,11 @@
-2009-05-05  Antonio Perez  <[email protected]>
+2009-05-07  Antonio Perez  <[email protected]>

+       * admin/server.py: Cherokee-Admin fails if HTTP_ACCEPT_LANGUAGE
+       is not included in request header. Fixes bug #453:
+       http://code.google.com/p/cherokee/issues/detail?id=453
+
+2009-05-06  Antonio Perez  <[email protected]>
+
        * admin/ModuleBalancer.py, admin/ModuleDirlist.py: Fixes an i18n
        issue related to empty strings.

Modified: cherokee/trunk/admin/server.py (3201 => 3202)

--- cherokee/trunk/admin/server.py      2009-05-06 11:35:32 UTC (rev 3201)
+++ cherokee/trunk/admin/server.py      2009-05-07 12:55:49 UTC (rev 3202)
@@ -59,8 +59,13 @@
         uri     = self.env['REQUEST_URI']

         if not SELECTED_LANGUAGE:
-            select_language (self.env['HTTP_ACCEPT_LANGUAGE'])
+            try:
+                langs = self.env['HTTP_ACCEPT_LANGUAGE']
+            except:
+                langs = None

+            select_language (langs)
+
         # Ensure that the configuration file is writable
         if not cfg.has_tree():
             if not uri.startswith('/create_config'):
@@ -186,7 +191,7 @@
         except:
             pass

-        SELECTED_LANGUAGE = True
+    SELECTED_LANGUAGE = True


 # Server
_______________________________________________
Cherokee-commits mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee-commits
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to