fix restoration of gallery setting for NarrativeWeb.py

svn: r7007
This commit is contained in:
Brian Matherly 2006-07-08 04:10:42 +00:00
parent 5efee6cd2d
commit a7bd91a242
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2006-07-07 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py: fix restoration of gallery settings
2006-07-06 Alex Roitman <shura@phy.ucsf.edu>
* data/gramps.schemas.in: Remove unused key.
* src/Config/_GrampsConfigKeys.py: Regenerate file.

View File

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