2003-05-13 20:50:58 +00:00
|
|
|
|
# -*- python -*-
|
2003-08-14 22:33:30 +00:00
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
#
|
2002-10-20 14:25:16 +00:00
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
|
#
|
2006-03-02 23:37:16 +00:00
|
|
|
|
# Copyright (C) 2000-2006 Donald N. Allingham
|
2002-10-20 14:25:16 +00:00
|
|
|
|
#
|
|
|
|
|
# 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
|
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
#
|
|
|
|
|
|
2004-01-09 23:05:06 +00:00
|
|
|
|
# $Id$
|
|
|
|
|
|
2005-08-25 15:08:07 +00:00
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
2006-03-01 05:08:11 +00:00
|
|
|
|
# Standard python modules
|
2005-08-25 15:08:07 +00:00
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2006-03-01 05:08:11 +00:00
|
|
|
|
import os
|
2006-05-21 20:27:46 +00:00
|
|
|
|
from gettext import gettext as _
|
2005-08-25 15:08:07 +00:00
|
|
|
|
|
2002-10-20 14:25:16 +00:00
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
2006-03-01 05:08:11 +00:00
|
|
|
|
# Standard GRAMPS Websites
|
2002-10-20 14:25:16 +00:00
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2006-03-01 05:08:11 +00:00
|
|
|
|
url_homepage = "http://gramps-project.org/"
|
|
|
|
|
url_mailinglist = "http://sourceforge.net/mail/?group_id=25770"
|
2006-04-22 22:09:16 +00:00
|
|
|
|
url_bugtracker = "http://bugs.gramps-project.org/bug_report_advanced_page.php"
|
2002-10-20 14:25:16 +00:00
|
|
|
|
|
2004-08-07 05:16:57 +00:00
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Mime Types
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2005-02-19 19:05:48 +00:00
|
|
|
|
app_gramps = "application/x-gramps"
|
|
|
|
|
app_gramps_xml = "application/x-gramps-xml"
|
|
|
|
|
app_gedcom = "application/x-gedcom"
|
|
|
|
|
app_gramps_package = "application/x-gramps-package"
|
|
|
|
|
app_geneweb = "application/x-geneweb"
|
2005-03-16 22:40:42 +00:00
|
|
|
|
app_vcard = ["text/x-vcard","text/x-vcalendar"]
|
2004-08-07 05:16:57 +00:00
|
|
|
|
|
2002-10-20 14:25:16 +00:00
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Paths to external programs
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
editor = "gimp"
|
|
|
|
|
convert = "convert"
|
|
|
|
|
|
2002-11-12 04:12:18 +00:00
|
|
|
|
pixdir = "/usr/share/pixmaps"
|
|
|
|
|
nautdir = "/usr/share/pixmaps/nautilus"
|
|
|
|
|
|
2003-03-31 01:33:40 +00:00
|
|
|
|
prefixdir = "@GPREFIX@"
|
|
|
|
|
|
2005-01-06 17:28:31 +00:00
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Configuration database options - True means drop down to .INI files
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
no_gconf = False
|
|
|
|
|
|
2006-03-21 06:23:45 +00:00
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Determine the home directory. According to Wikipedia, most UNIX like
|
|
|
|
|
# systems use HOME. I'm assuming that this would apply to OS X as well.
|
|
|
|
|
# Windows apparently uses USERPROFILE
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2006-08-20 21:52:49 +00:00
|
|
|
|
if os.environ.has_key('USERPROFILE'):
|
2006-03-29 04:11:17 +00:00
|
|
|
|
user_home = os.environ['USERPROFILE']
|
|
|
|
|
home_dir = os.path.join(user_home,'gramps')
|
2006-08-20 21:52:49 +00:00
|
|
|
|
else:
|
|
|
|
|
user_home = os.environ['HOME']
|
|
|
|
|
home_dir = os.path.join(user_home,'.gramps')
|
2006-03-21 06:23:45 +00:00
|
|
|
|
|
2002-10-20 14:25:16 +00:00
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Paths to files - assumes that files reside in the same directory as
|
|
|
|
|
# this one, and that the plugins directory is in a directory below this.
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2006-03-03 00:17:58 +00:00
|
|
|
|
root_dir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
image_dir = os.path.join(root_dir,"images")
|
2002-10-20 14:25:16 +00:00
|
|
|
|
|
2006-03-21 06:23:45 +00:00
|
|
|
|
custom_filters = os.path.join(home_dir,"custom_filters.xml")
|
|
|
|
|
report_options = os.path.join(home_dir,"report_options.xml")
|
|
|
|
|
tool_options = os.path.join(home_dir,"tool_options.xml")
|
2006-03-29 03:21:29 +00:00
|
|
|
|
thumb_dir = os.path.join(home_dir,"thumb")
|
2006-03-21 06:23:45 +00:00
|
|
|
|
bsddbenv_dir = os.path.join(home_dir,"bsddbenv")
|
2006-03-04 22:53:46 +00:00
|
|
|
|
|
2006-03-03 00:17:58 +00:00
|
|
|
|
icon = os.path.join(root_dir,"images","gramps.png")
|
|
|
|
|
logo = os.path.join(root_dir,"images","logo.png")
|
|
|
|
|
splash = os.path.join(root_dir,"images","splash.jpg")
|
2006-03-21 06:23:45 +00:00
|
|
|
|
license_file = os.path.join(root_dir,"COPYING")
|
2006-03-04 22:53:46 +00:00
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Glade files
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
glade_dir = os.path.join(root_dir,"glade")
|
|
|
|
|
gladeFile = os.path.join(glade_dir,"gramps.glade")
|
|
|
|
|
person_glade = os.path.join(glade_dir,"edit_person.glade")
|
2006-03-05 04:31:24 +00:00
|
|
|
|
plugins_glade = os.path.join(glade_dir,"plugins.glade")
|
|
|
|
|
merge_glade = os.path.join(glade_dir,"mergedata.glade")
|
|
|
|
|
rule_glade = os.path.join(glade_dir,"rule.glade")
|
2006-03-03 00:17:58 +00:00
|
|
|
|
|
2006-03-04 22:53:46 +00:00
|
|
|
|
|
2006-03-03 00:17:58 +00:00
|
|
|
|
pluginsDir = os.path.join(root_dir,"plugins")
|
|
|
|
|
docgenDir = os.path.join(root_dir,"docgen")
|
|
|
|
|
data_dir = os.path.join(root_dir,"data")
|
2006-03-04 22:53:46 +00:00
|
|
|
|
system_filters = os.path.join(data_dir,"system_filters.xml")
|
2006-03-03 00:17:58 +00:00
|
|
|
|
template_dir = os.path.join(data_dir,"templates")
|
|
|
|
|
tipdata = os.path.join(data_dir,"tips.xml")
|
|
|
|
|
fdl = os.path.join(data_dir,"fdl.txt")
|
2002-10-20 14:25:16 +00:00
|
|
|
|
|
2006-03-21 06:23:45 +00:00
|
|
|
|
papersize = "file:%s/papersize.xml" % data_dir
|
|
|
|
|
|
2002-10-20 14:25:16 +00:00
|
|
|
|
startup = 1
|
2003-05-17 03:20:50 +00:00
|
|
|
|
dnd_images = 1
|
2006-03-09 19:07:13 +00:00
|
|
|
|
use_tips = False
|
2006-03-29 03:21:29 +00:00
|
|
|
|
use_thumbnailer= True
|
2002-10-20 14:25:16 +00:00
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# About box information
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2006-03-21 06:23:45 +00:00
|
|
|
|
program_name = "GRAMPS"
|
|
|
|
|
version = "@VERSIONSTRING@"
|
|
|
|
|
copyright_msg = unicode("<EFBFBD> 2001-2006 Donald N. Allingham","iso-8859-1")
|
|
|
|
|
comments = _("GRAMPS (Genealogical Research and Analysis "
|
|
|
|
|
"Management Programming System) is a personal "
|
|
|
|
|
"genealogy program.")
|
|
|
|
|
authors = [
|
2003-03-20 00:09:22 +00:00
|
|
|
|
"Donald N. Allingham",
|
2003-05-28 15:55:59 +00:00
|
|
|
|
"Alexander Roitman",
|
2005-04-05 15:31:04 +00:00
|
|
|
|
"Richard Taylor",
|
|
|
|
|
"Martin Hawlisch",
|
2006-05-31 03:23:55 +00:00
|
|
|
|
"Brian Matherly",
|
2003-12-07 02:45:33 +00:00
|
|
|
|
"Tim Waugh",
|
|
|
|
|
"Donald A. Peterson",
|
2003-02-14 03:55:20 +00:00
|
|
|
|
"David Hampton",
|
|
|
|
|
]
|
|
|
|
|
|
2006-03-21 06:23:45 +00:00
|
|
|
|
documenters = [
|
2003-04-17 19:37:23 +00:00
|
|
|
|
'Alexander Roitman',
|
2003-02-14 03:55:20 +00:00
|
|
|
|
]
|
|
|
|
|
|
2003-04-05 23:39:22 +00:00
|
|
|
|
translators = _('TRANSLATORS: Translate this to your name in your native language')
|
2002-10-20 14:25:16 +00:00
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Constants
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
thumbScale = 96.0
|
|
|
|
|
xmlFile = "data.gramps"
|
|
|
|
|
|
2003-05-17 04:14:13 +00:00
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Options Constants
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
2004-06-21 05:10:27 +00:00
|
|
|
|
# (longName, shortName, type , default, flags, descrip , argDescrip)
|
|
|
|
|
popt_table = [
|
2005-01-29 23:34:09 +00:00
|
|
|
|
("open", 'O', str, None, 0, "Open file", "FILENAME"),
|
2004-12-22 01:56:37 +00:00
|
|
|
|
("import", 'i', str, None, 0, "Import file", "FILENAME"),
|
|
|
|
|
("output", 'o', str, None, 0, "Write file", "FILENAME"),
|
|
|
|
|
("format", 'f', str, None, 0, 'Specify format', "FORMAT"),
|
|
|
|
|
("action", 'a', str, None, 0, 'Specify action', "ACTION"),
|
|
|
|
|
("options", 'p', str, None, 0, 'Specify options', "OPTIONS_STRING"),
|
2004-06-21 05:10:27 +00:00
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
longopts = [
|
|
|
|
|
"load-modules=",
|
|
|
|
|
"help",
|
|
|
|
|
"usage",
|
|
|
|
|
"oaf-ior-fd=",
|
|
|
|
|
"oaf-activate-iid=",
|
|
|
|
|
"oaf-private",
|
|
|
|
|
"disable-sound",
|
|
|
|
|
"enable-sound",
|
|
|
|
|
"espeaker=",
|
|
|
|
|
"version",
|
|
|
|
|
"gdk-debug=",
|
|
|
|
|
"gdk-no-debug=",
|
|
|
|
|
"display=",
|
|
|
|
|
"screen=",
|
|
|
|
|
"sync",
|
|
|
|
|
"name=",
|
|
|
|
|
"class=",
|
|
|
|
|
"gtk-debug=",
|
|
|
|
|
"gtk-no-debug=",
|
|
|
|
|
"g-fatal-warnings",
|
|
|
|
|
"gtk-module=",
|
|
|
|
|
"sm-client-id=",
|
|
|
|
|
"sm-config-prefix=",
|
|
|
|
|
"sm-disable",
|
|
|
|
|
"disable-crash-dialog",
|
|
|
|
|
"disable-sound",
|
|
|
|
|
"enable-sound",
|
|
|
|
|
"espeaker=",
|
2005-01-29 23:34:09 +00:00
|
|
|
|
"open=",
|
2004-06-21 05:10:27 +00:00
|
|
|
|
"import=",
|
|
|
|
|
"output=",
|
|
|
|
|
"format=",
|
|
|
|
|
"action=",
|
2004-12-22 01:56:37 +00:00
|
|
|
|
"options=",
|
2004-06-21 05:10:27 +00:00
|
|
|
|
]
|
2003-05-17 04:14:13 +00:00
|
|
|
|
|
2005-01-29 23:34:09 +00:00
|
|
|
|
shortopts = "O:i:o:f:a:p:?"
|
2003-05-17 04:14:13 +00:00
|
|
|
|
|