gramps/src/const.py

171 lines
5.3 KiB
Python
Raw Normal View History

2001-05-13 07:26:57 +05:30
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000 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
# 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
#
import os
import intl
_ = intl.gettext
#-------------------------------------------------------------------------
#
# Paths to external programs
#
#-------------------------------------------------------------------------
editor = "gimp"
zipcmd = "/usr/bin/zip -r -q"
convert = "/usr/X11R6/bin/convert"
#-------------------------------------------------------------------------
#
# Exceptions
#
#-------------------------------------------------------------------------
OpenFailed = "Open Failed"
#-------------------------------------------------------------------------
#
# 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.
#
#-------------------------------------------------------------------------
rootDir = os.path.dirname(__file__)
logo = rootDir + os.sep + "gramps.xpm"
gladeFile = rootDir + os.sep + "gramps.glade"
imageselFile = rootDir + os.sep + "imagesel.glade"
marriageFile = rootDir + os.sep + "marriage.glade"
editPersonFile = rootDir + os.sep + "EditPerson.glade"
bookFile = rootDir + os.sep + "bookmarks.glade"
pluginsFile = rootDir + os.sep + "plugins.glade"
configFile = rootDir + os.sep + "config.glade"
pluginsDir = rootDir + os.sep + "plugins"
filtersDir = rootDir + os.sep + "filters"
dataDir = rootDir + os.sep + "data"
gtkrcFile = rootDir + os.sep + "gtkrc"
#-------------------------------------------------------------------------
#
# About box information
#
#-------------------------------------------------------------------------
progName = "gramps"
version = "0.1.5"
2001-05-13 07:26:57 +05:30
copyright = "(C) 2001 Donald N. Allingham"
authors = ["Donald N. Allingham"]
comments = _("Gramps (Genealogical Research and Analysis Management ") +\
_("Programming System) is a personal genealogy program that ") +\
_("can be extended by using the Python programming language.")
#-------------------------------------------------------------------------
#
# Enable/disable exceptions. For debugging purposes
#
#-------------------------------------------------------------------------
useExceptions= 0
#-------------------------------------------------------------------------
#
# Constants
#
#-------------------------------------------------------------------------
picWidth = 275.0
2001-05-13 07:26:57 +05:30
thumbScale = 100.0
indexFile = "data.gramps"
male = _("male")
female = _("female")
helpMenu = "contents.html"
#-------------------------------------------------------------------------
#
# Constants
#
#-------------------------------------------------------------------------
childRelations = [
"Biological",
"Adopted",
"Other"
]
familyConstantEvents = {
"Annulment" : "ANUL",
"Divorce Filing" : "DIVF",
"Divorce" : "DIV",
"Engagement" : "ENGA",
"Marriage Contract" : "MARC",
"Marriage License" : "MARL",
"Marriage Settlement" : "MARS",
"Marriage" : "MARR"
}
personalConstantEvents = {
"Adopted" : "ADOP",
"Alternate Birth" : "BIRT",
"Alternate Death" : "DEAT",
"Baptism (LDS)" : "BAPL",
"Baptism" : "BAPM",
"Bar Mitzvah" : "BARM",
"Bas Mitzvah" : "BASM",
"Burial" : "BURI",
"Cause Of Death" : "CAUS",
"Census" : "CENS",
"Christening" : "CHR" ,
"Confirmation" : "CONF",
"Cremation" : "CREM",
"Degree" : "_DEG",
"Divorce Filing" : "DIVF",
"Education" : "EDUC",
"Elected" : "_ELEC",
"Emigration" : "EMIG",
"Graduation" : "GRAD",
"Military Service" : "_MILT",
"Naturalization" : "NATU",
"Occupation" : "OCCU",
"Probate" : "PROB",
"Religion" : "RELI",
"Residence" : "RESI",
"Residence" : "RESI",
"Retirement" : "RETI"
}
personalConstantAttributes = {
"Description" : "DSCR",
"Indentification Number": "IDNO",
"Social Security Number": "SSN"
}
familyConstantRelations = [
"Married",
"Common Law",
"Partners",
"Unknown"
]
2001-05-13 07:26:57 +05:30
personalEvents = personalConstantEvents.keys()
personalEvents.sort()
personalAttributes = personalConstantAttributes.keys()
personalAttributes.sort()
marriageEvents = familyConstantEvents.keys()
marriageEvents.sort()
familyRelations = familyConstantRelations