From 911b8f0217657a7f8e54bbd88058450d29947782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 26 Feb 2011 08:37:47 +0000 Subject: [PATCH] 4668: Web reports crash (translation css filename) svn: r16718 --- src/plugins/webreport/NarrativeWeb.py | 4 ++-- src/plugins/webreport/WebCal.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 5b2608779..ab8cbd5a2 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -6443,10 +6443,10 @@ class NavWebOptions(MenuReportOptions): addopt( "cright", cright ) self.__css = EnumeratedListOption(_('StyleSheet'), CSS["default"]["id"]) - for (name, id) in sorted([(CSS[key]["translation"], CSS[key]["id"]) + for (fname, id) in sorted([(CSS[key]["translation"], CSS[key]["id"]) for key in CSS.keys()]): if CSS[id]["user"]: - self.__css.add_item(CSS[id]["translation"], CSS[id]["id"]) + self.__css.add_item(CSS[id]["id"], CSS[id]["translation"]) self.__css.set_help( _('The stylesheet to be used for the web pages')) addopt( "css", self.__css ) self.__css.connect("value-changed", self.__stylesheet_changed) diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index 9f00b90d7..099c2372f 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -1393,10 +1393,10 @@ class WebCalOptions(MenuReportOptions): menu.add_option(category_name, "cright", cright) css = EnumeratedListOption(_('StyleSheet'), CSS["default"]["id"]) - for (name, id) in sorted([(CSS[key]["translation"], CSS[key]["id"]) - for key in CSS.keys()]): + for (fname, id) in sorted([(CSS[key]["translation"], CSS[key]["id"]) + for key in CSS.keys()]): if CSS[id]["user"]: - css.add_item(CSS[id]["translation"], CSS[id]["id"]) + css.add_item(CSS[id]["id"], CSS[id]["translation"]) css.set_help( _('The stylesheet to be used for the web pages')) menu.add_option(category_name, "css", css)