* 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:
parent
70e3c36ded
commit
912a73371f
@ -1,4 +1,7 @@
|
|||||||
2006-08-27 Alex Roitman <shura@gramps-project.org>
|
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;
|
* src/plugins/RelCalc.py: Use name display preferences throughout;
|
||||||
collapse unique entries in the common ancestors list.
|
collapse unique entries in the common ancestors list.
|
||||||
* src/plugins/TestcaseGenerator.py: Bring somewhat up to date.
|
* src/plugins/TestcaseGenerator.py: Bring somewhat up to date.
|
||||||
|
@ -55,11 +55,12 @@ import RelLib
|
|||||||
from Filters import GenericFilter, Rules, build_filter_menu
|
from Filters import GenericFilter, Rules, build_filter_menu
|
||||||
import const
|
import const
|
||||||
import _GedcomInfo as GedcomInfo
|
import _GedcomInfo as GedcomInfo
|
||||||
|
import Config
|
||||||
import Errors
|
import Errors
|
||||||
import ansel_utf8
|
import ansel_utf8
|
||||||
import Utils
|
import Utils
|
||||||
import NameDisplay
|
import NameDisplay
|
||||||
from QuestionDialog import ErrorDialog, WarningDialog
|
from QuestionDialog import ErrorDialog, WarningDialog, MessageHideDialog
|
||||||
from BasicUtils import UpdateCallback
|
from BasicUtils import UpdateCallback
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
@ -73,6 +74,12 @@ def keep_utf8(s):
|
|||||||
def iso8859(s):
|
def iso8859(s):
|
||||||
return s.encode('iso-8859-1','replace')
|
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
|
# 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.cnvtxt = self.option_box.cnvtxt
|
||||||
self.nl = self.option_box.nl
|
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:
|
if self.option_box.cfilter == None:
|
||||||
self.plist = set(self.db.get_person_handles(sort_handles=False))
|
self.plist = set(self.db.get_person_handles(sort_handles=False))
|
||||||
else:
|
else:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# 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
|
# 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
|
# 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
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# $Id$
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Python modules
|
# Python modules
|
||||||
@ -168,12 +170,7 @@ def run():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import StartupDialog
|
gramps_main.Gramps(args)
|
||||||
|
|
||||||
if StartupDialog.need_to_run():
|
|
||||||
StartupDialog.StartupDialog(gramps_main.Gramps,args)
|
|
||||||
else:
|
|
||||||
gramps_main.Gramps(args)
|
|
||||||
except:
|
except:
|
||||||
log.error("Gramps failed to start.", exc_info=True)
|
log.error("Gramps failed to start.", exc_info=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user