From 2c055a8e2ed36462e6365f43ea25e66a2446cafc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 22 Jan 2010 18:18:38 +0100 Subject: [PATCH] Fix issue that news items got displayed in wrong language. --- www/webapp/ui_modules.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/webapp/ui_modules.py b/www/webapp/ui_modules.py index 17923eb7..aa89f805 100644 --- a/www/webapp/ui_modules.py +++ b/www/webapp/ui_modules.py @@ -5,6 +5,8 @@ import tornado.web import menu import releases +from helpers import Item + class UIModule(tornado.web.UIModule): def render_string(self, *args, **kwargs): kwargs.update({ @@ -36,6 +38,7 @@ class MenuModule(UIModule): class NewsItemModule(UIModule): def render(self, item): + item = Item(**item.args.copy()) for attr in ("subject", "content"): if type(item[attr]) != type({}): continue -- 2.47.3