4668: Web reports crash (translation css filename)

svn: r16718
This commit is contained in:
Jérôme Rapinat 2011-02-26 08:37:47 +00:00
parent b74edfca2d
commit 911b8f0217
2 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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)