Replaced downloadnote with msg on DownloadPage.

svn: r15018
This commit is contained in:
Rob G. Healey 2010-04-04 05:41:42 +00:00
parent 1fcfbe0cb3
commit 318ffc4060

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python # encoding: utf-8
# -*- coding: utf-8 -*-
# #
# Gramps - a GTK+/GNOME based genealogy program # Gramps - a GTK+/GNOME based genealogy program
# #
@ -4946,7 +4945,6 @@ class NavWebReport(Report):
# Download Options Tab # Download Options Tab
self.inc_download = self.options['incdownload'] self.inc_download = self.options['incdownload']
self.downloadnote = self.options['downloadnote']
self.dl_fname1 = self.options['down_fname1'] self.dl_fname1 = self.options['down_fname1']
self.dl_descr1 = self.options['dl_descr1'] self.dl_descr1 = self.options['dl_descr1']
self.dl_fname2 = self.options['down_fname2'] self.dl_fname2 = self.options['down_fname2']
@ -5087,11 +5085,11 @@ class NavWebReport(Report):
self.source_pages(source_list) self.source_pages(source_list)
# build classes RepositoryListPage and RepositoryPage # build classes RepositoryListPage and RepositoryPage
if self.inc_repository:
repolist = self.database.get_repository_handles() repolist = self.database.get_repository_handles()
if len(repolist): if len(repolist):
self.repository_pages(repolist) self.repository_pages(repolist)
# build class InternetAddressBook # build class InternetAddressBook
if self.addressbook: if self.addressbook:
self.address_book_page(ind_list) self.address_book_page(ind_list)
@ -5799,10 +5797,6 @@ class NavWebOptions(MenuReportOptions):
menu.add_option(category_name, 'incdownload', self.__incdownload) menu.add_option(category_name, 'incdownload', self.__incdownload)
self.__incdownload.connect('value-changed', self.__download_changed) self.__incdownload.connect('value-changed', self.__download_changed)
self.__downloadnote = NoteOption(_('Download page note'))
self.__downloadnote.set_help( _("A note to be used on the download page"))
menu.add_option(category_name, "downloadnote", self.__downloadnote)
self.__down_fname1 = DestinationOption(_("Download Filename"), self.__down_fname1 = DestinationOption(_("Download Filename"),
os.path.join(const.USER_HOME, "")) os.path.join(const.USER_HOME, ""))
self.__down_fname1.set_help(_("File to be used for downloading of database")) self.__down_fname1.set_help(_("File to be used for downloading of database"))
@ -5957,14 +5951,12 @@ class NavWebOptions(MenuReportOptions):
""" """
if self.__incdownload.get_value(): if self.__incdownload.get_value():
self.__downloadnote.set_available(True)
self.__down_fname1.set_available(True) self.__down_fname1.set_available(True)
self.__dl_descr1.set_available(True) self.__dl_descr1.set_available(True)
self.__down_fname2.set_available(True) self.__down_fname2.set_available(True)
self.__dl_descr2.set_available(True) self.__dl_descr2.set_available(True)
self.__dl_cright.set_available(True) self.__dl_cright.set_available(True)
else: else:
self.__downloadnote.set_available(False)
self.__down_fname1.set_available(False) self.__down_fname1.set_available(False)
self.__dl_descr1.set_available(False) self.__dl_descr1.set_available(False)
self.__down_fname2.set_available(False) self.__down_fname2.set_available(False)