]> git.ipfire.org Git - pbs.git/commitdiff
Fix for newer versions of tornado.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Dec 2012 16:31:04 +0000 (17:31 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Dec 2012 16:31:04 +0000 (17:31 +0100)
web/handlers_base.py

index f25d7e1c1cafbd2c6d591d9f78dd0cbd482e2423..aeea22474fa7cbdd8c678022ced8e64e898d7321 100644 (file)
@@ -49,7 +49,7 @@ class BaseHandler(tornado.web.RequestHandler):
        def get_user_locale(self):
                DEFAULT_LOCALE = tornado.locale.get("en_US")
                ALLOWED_LOCALES = \
-                       [tornado.locale.get(l) for l in tornado.locale.get_supported_locales(None)]
+                       [tornado.locale.get(l) for l in tornado.locale.get_supported_locales()]
 
                # One can append "?locale=de" to mostly and URI on the site and
                # another output that guessed.