From 1223cbda1fb11f93b06e2efb6187772ca29996fc Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sun, 1 Apr 2018 11:06:17 +0200 Subject: [PATCH] Webcal crashes after Narrative Web site exists + multiyear select option problem Fixes #10524 --- gramps/plugins/webreport/webcal.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/webreport/webcal.py b/gramps/plugins/webreport/webcal.py index b71c3e0ed..4163fd39e 100644 --- a/gramps/plugins/webreport/webcal.py +++ b/gramps/plugins/webreport/webcal.py @@ -529,8 +529,8 @@ class WebCalReport(Report): # each year will link to current month. # this will always need an extension added month = int(self.today.get_month()) - month = month.lower() full_month_name = self.rlocale.date_displayer.long_months[month] + full_month_name = full_month_name.lower() # Note. We use '/' here because it is a URL, not a OS dependent # pathname. @@ -1880,6 +1880,10 @@ class WebCalOptions(MenuReportOptions): """ Handles the ability to print multiple year calendars or not? """ + mgobn = lambda name: self.menu.get_option_by_name(name) + self.__multiyear = mgobn('multiyear') + self.__start_year = mgobn('start_year') + self.__end_year = mgobn('end_year') if self.__start_year: self.__start_year.set_available(True)