* src/GrampsDb/_WriteGedcom.py (GedcomWriter.gui_setup): Add a

dialog about the researcher information.
	* src/gramps.py (run): Remove startup dialog.


svn: r7278
This commit is contained in:
Alex Roitman 2006-08-27 21:04:49 +00:00
parent fa22e15fae
commit ef3fc27d4e
3 changed files with 24 additions and 8 deletions

View File

@ -1,4 +1,7 @@
2006-08-27 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_WriteGedcom.py (GedcomWriter.gui_setup): Add a
dialog about the researcher information.
* src/gramps.py (run): Remove startup dialog.
* src/plugins/RelCalc.py: Use name display preferences throughout;
collapse unique entries in the common ancestors list.
* src/plugins/TestcaseGenerator.py: Bring somewhat up to date.

View File

@ -55,11 +55,12 @@ import RelLib
from Filters import GenericFilter, Rules, build_filter_menu
import const
import _GedcomInfo as GedcomInfo
import Config
import Errors
import ansel_utf8
import Utils
import NameDisplay
from QuestionDialog import ErrorDialog, WarningDialog
from QuestionDialog import ErrorDialog, WarningDialog, MessageHideDialog
from BasicUtils import UpdateCallback
#------------------------------------------------------------------------
@ -73,6 +74,12 @@ def keep_utf8(s):
def iso8859(s):
return s.encode('iso-8859-1','replace')
def researcher_info_missing():
val = Config.get(Config.STARTUP)
if val < const.startup:
return True
return False
#-------------------------------------------------------------------------
#
# GEDCOM tags representing attributes that may take a parameter, value or
@ -454,6 +461,15 @@ class GedcomWriter(UpdateCallback):
self.cnvtxt = self.option_box.cnvtxt
self.nl = self.option_box.nl
if researcher_info_missing():
MessageHideDialog(
_('Researcher information'),
_('A valid GEDCOM file is required to contain researcher '
'information. You need to fill these data in the '
'Preferences dialog.\n\n'
'However, most programs do not require it. '
'You may leave this empty if you want.'),Config.STARTUP)
if self.option_box.cfilter == None:
self.plist = set(self.db.get_person_handles(sort_handles=False))
else:

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2003 Donald N. Allingham
# Copyright (C) 2000-2006 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -18,6 +18,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
#-------------------------------------------------------------------------
#
# Python modules
@ -168,12 +170,7 @@ def run():
pass
try:
import StartupDialog
if StartupDialog.need_to_run():
StartupDialog.StartupDialog(gramps_main.Gramps,args)
else:
gramps_main.Gramps(args)
gramps_main.Gramps(args)
except:
log.error("Gramps failed to start.", exc_info=True)