commit/galaxy-central: natefoo: Fix infinite loop setting up locales.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/f3e91f8ea422/ changeset: r5053:f3e91f8ea422 user: natefoo date: 2011-02-14 15:08:04 summary: Fix infinite loop setting up locales. affected #: 1 file (14 bytes) --- a/lib/galaxy/web/framework/__init__.py Fri Feb 11 16:55:14 2011 -0500 +++ b/lib/galaxy/web/framework/__init__.py Mon Feb 14 09:08:04 2011 -0500 @@ -201,8 +201,8 @@ locales = [] if 'HTTP_ACCEPT_LANGUAGE' in self.environ: # locales looks something like: ['en', 'en-us;q=0.7', 'ja;q=0.3'] - locales = self.environ['HTTP_ACCEPT_LANGUAGE'].split( ',' ) - for locale in locales: + client_locales = self.environ['HTTP_ACCEPT_LANGUAGE'].split( ',' ) + for locale in client_locales: try: locales.append( Locale.parse( locale.split( ';' )[0], sep='-' ).language ) except UnknownLocaleError: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket