From fc53b893708c90b9e972d7c198a0cdf86a3bf8fa Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sat, 8 Jul 2006 04:10:42 +0000 Subject: [PATCH] fix restoration of gallery setting for NarrativeWeb.py svn: r7007 --- gramps2/ChangeLog | 3 +++ gramps2/src/plugins/NarrativeWeb.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index c185f2f5b..c9b8f179a 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2006-07-07 Brian Matherly + * src/plugins/NarrativeWeb.py: fix restoration of gallery settings + 2006-07-06 Alex Roitman * data/gramps.schemas.in: Remove unused key. * src/Config/_GrampsConfigKeys.py: Regenerate file. diff --git a/gramps2/src/plugins/NarrativeWeb.py b/gramps2/src/plugins/NarrativeWeb.py index 9643a5acb..cd0da0534 100644 --- a/gramps2/src/plugins/NarrativeWeb.py +++ b/gramps2/src/plugins/NarrativeWeb.py @@ -2010,7 +2010,7 @@ class WebReport(Report): self.noid = options.handler.options_dict['NWEBnoid'] self.title = options.handler.options_dict['NWEBtitle'] self.sort = Sort.Sort(self.database) - self.inc_gallery = bool(options.handler.options_dict['NWEBgallery']) + self.inc_gallery = options.handler.options_dict['NWEBgallery'] self.inc_contact = options.handler.options_dict['NWEBcontact'] != u"" self.inc_download = options.handler.options_dict['NWEBdownload'] self.user_header = options.handler.options_dict['NWEBheader'] @@ -2546,7 +2546,7 @@ class WebReportOptions(ReportOptions): self.options_dict['NWEBincpriv'] = int(not self.no_private.get_active()) self.options_dict['NWEBnoid'] = int(self.noid.get_active()) self.options_dict['NWEBcontact'] = unicode(self.contact.get_handle()) - self.options_dict['NWEBgallery'] = self.include_gallery.get_active() + self.options_dict['NWEBgallery'] = int(self.include_gallery.get_active()) self.options_dict['NWEBheader'] = unicode(self.header.get_handle()) self.options_dict['NWEBfooter'] = unicode(self.footer.get_handle()) self.options_dict['NWEBdownload'] = int(self.inc_download.get_active())