From 099e88eef3aeab51eedcaa244316a951ec035f2d Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Tue, 3 May 2016 12:26:39 +0200 Subject: [PATCH] NarrativeWeb : use the common way to manage name format (cleanup). --- gramps/plugins/webreport/narrativeweb.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index 92d28db70..e825e55d1 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -9274,21 +9274,6 @@ class NavWebOptions(MenuReportOptions): self.__update_filters() - # We must figure out the value of the first option before we can - # create the EnumeratedListOption - #fmt_list = _nd.get_name_format() - #defaultnum = _nd.get_default_format() - #default = 0 - #for ind, val in enumerate(fmt_list): - # if val[0] == defaultnum: - # default = ind - # break - #name_format = EnumeratedListOption(_("Name format"), - # fmt_list[default][0]) - #for num, name, fmt_str, act in fmt_list: - # name_format.add_item(num, name) - #name_format.set_help(_("Select the format to display names")) - #addopt("name_format", name_format) stdoptions.add_name_format_option(menu, category_name) ext = EnumeratedListOption(_("File extension"), ".html")