2003-05-14 02:20:58 +05:30
|
|
|
|
# -*- python -*-
|
2003-08-15 04:03:30 +05:30
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
#
|
2002-10-20 19:55:16 +05:30
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
|
#
|
2005-01-16 01:54:29 +05:30
|
|
|
|
# Copyright (C) 2000-2005 Donald N. Allingham
|
2002-10-20 19:55:16 +05:30
|
|
|
|
#
|
|
|
|
|
# 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-10 04:35:06 +05:30
|
|
|
|
# $Id$
|
|
|
|
|
|
2002-10-20 19:55:16 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Standard python modules
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# internationalization
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2003-08-17 07:44:33 +05:30
|
|
|
|
from gettext import gettext as _
|
2004-01-21 04:57:39 +05:30
|
|
|
|
from TransTable import TransTable
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
2004-08-07 10:46:57 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Mime Types
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2005-02-20 00:35:48 +05:30
|
|
|
|
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-17 04:10:42 +05:30
|
|
|
|
app_vcard = ["text/x-vcard","text/x-vcalendar"]
|
2004-08-07 10:46:57 +05:30
|
|
|
|
|
2005-02-27 11:21:59 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Display update values
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
UPDATE_PERSON = 0x1
|
|
|
|
|
UPDATE_FAMILY = 0x2
|
|
|
|
|
UPDATE_PLACE = 0x4
|
|
|
|
|
UPDATE_SOURCE = 0x8
|
|
|
|
|
|
2002-10-20 19:55:16 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Paths to external programs
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
editor = "gimp"
|
|
|
|
|
convert = "convert"
|
|
|
|
|
|
2002-11-12 09:42:18 +05:30
|
|
|
|
pixdir = "/usr/share/pixmaps"
|
|
|
|
|
nautdir = "/usr/share/pixmaps/nautilus"
|
|
|
|
|
|
2003-03-31 07:03:40 +05:30
|
|
|
|
prefixdir = "@GPREFIX@"
|
|
|
|
|
|
2005-01-06 22:58:31 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Configuration database options - True means drop down to .INI files
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
no_gconf = False
|
|
|
|
|
|
2002-10-20 19:55:16 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
if os.environ.has_key('GRAMPSDIR'):
|
|
|
|
|
rootDir = os.environ['GRAMPSDIR']
|
|
|
|
|
else:
|
|
|
|
|
rootDir = "."
|
|
|
|
|
|
2002-11-21 10:12:22 +05:30
|
|
|
|
good_xpm = "%s/good.png" % rootDir
|
|
|
|
|
bad_xpm = "%s/bad.png" % rootDir
|
|
|
|
|
caution_xpm = "%s/caution.png" % rootDir
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
system_filters = "%s/system_filters.xml" % rootDir
|
|
|
|
|
custom_filters = "~/.gramps/custom_filters.xml"
|
2004-12-22 07:26:37 +05:30
|
|
|
|
report_options = "~/.gramps/report_options.xml"
|
2004-04-09 09:35:48 +05:30
|
|
|
|
icon = "%s/gramps.png" % rootDir
|
2002-10-20 19:55:16 +05:30
|
|
|
|
logo = "%s/logo.png" % rootDir
|
|
|
|
|
gladeFile = "%s/gramps.glade" % rootDir
|
2004-04-07 08:56:35 +05:30
|
|
|
|
placesFile = "%s/gramps.glade" % rootDir
|
2004-04-08 09:05:32 +05:30
|
|
|
|
imageselFile = "%s/gramps.glade" % rootDir
|
2004-04-07 08:56:35 +05:30
|
|
|
|
marriageFile = "%s/gramps.glade" % rootDir
|
2005-04-19 09:50:17 +05:30
|
|
|
|
editPersonFile = "%s/edit_person.glade" % rootDir
|
2002-10-20 19:55:16 +05:30
|
|
|
|
pluginsFile = "%s/plugins.glade" % rootDir
|
2004-04-07 08:56:35 +05:30
|
|
|
|
prefsFile = "%s/gramps.glade" % rootDir
|
2004-04-08 09:05:32 +05:30
|
|
|
|
stylesFile = "%s/gramps.glade" % rootDir
|
|
|
|
|
dialogFile = "%s/gramps.glade" % rootDir
|
2004-04-07 08:56:35 +05:30
|
|
|
|
srcselFile = "%s/gramps.glade" % rootDir
|
2002-10-20 19:55:16 +05:30
|
|
|
|
findFile = "%s/find.glade" % rootDir
|
|
|
|
|
mergeFile = "%s/mergedata.glade" % rootDir
|
2005-03-26 20:57:39 +05:30
|
|
|
|
merge2File = "%s/merge.glade" % rootDir
|
2002-10-20 19:55:16 +05:30
|
|
|
|
filterFile = "%s/rule.glade" % rootDir
|
2004-04-08 09:05:32 +05:30
|
|
|
|
errdialogsFile = "%s/gramps.glade" % rootDir
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
pluginsDir = "%s/plugins" % rootDir
|
2004-11-16 09:14:23 +05:30
|
|
|
|
datesDir = "%s/dates" % rootDir
|
2002-10-20 19:55:16 +05:30
|
|
|
|
docgenDir = "%s/docgen" % rootDir
|
|
|
|
|
dataDir = "%s/data" % rootDir
|
|
|
|
|
template_dir = "%s/templates" % dataDir
|
2004-04-11 08:07:13 +05:30
|
|
|
|
papersize = "file:%s/papersize.xml" % dataDir
|
2004-05-18 12:30:34 +05:30
|
|
|
|
tipdata = "%s/tips.xml" % dataDir
|
2003-02-12 09:55:27 +05:30
|
|
|
|
fdl = "%s/fdl.txt" % dataDir
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
startup = 1
|
2003-05-17 08:50:50 +05:30
|
|
|
|
dnd_images = 1
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# About box information
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
progName = "GRAMPS"
|
|
|
|
|
version = "@VERSIONSTRING@"
|
2005-01-16 01:54:29 +05:30
|
|
|
|
copyright = unicode("<EFBFBD> 2001-2005 Donald N. Allingham","iso-8859-1")
|
2002-10-20 19:55:16 +05:30
|
|
|
|
comments = _("GRAMPS (Genealogical Research and Analysis "
|
|
|
|
|
"Management Programming System) is a personal "
|
|
|
|
|
"genealogy program.")
|
2003-02-14 09:25:20 +05:30
|
|
|
|
authors = [
|
2003-03-20 05:39:22 +05:30
|
|
|
|
"Donald N. Allingham",
|
2003-05-28 21:25:59 +05:30
|
|
|
|
"Alexander Roitman",
|
2005-04-05 21:01:04 +05:30
|
|
|
|
"Richard Taylor",
|
|
|
|
|
"Martin Hawlisch",
|
2003-12-07 08:15:33 +05:30
|
|
|
|
"Tim Waugh",
|
|
|
|
|
"Donald A. Peterson",
|
2003-02-14 09:25:20 +05:30
|
|
|
|
"David Hampton",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
documenters = [
|
2003-04-18 01:07:23 +05:30
|
|
|
|
'Alexander Roitman',
|
2003-02-14 09:25:20 +05:30
|
|
|
|
]
|
|
|
|
|
|
2003-04-06 05:09:22 +05:30
|
|
|
|
translators = _('TRANSLATORS: Translate this to your name in your native language')
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Constants
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
thumbScale = 96.0
|
|
|
|
|
xmlFile = "data.gramps"
|
|
|
|
|
male = _("male")
|
|
|
|
|
female = _("female")
|
|
|
|
|
unknown = _("unknown")
|
|
|
|
|
|
2003-05-17 09:44:13 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Options Constants
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
2004-06-21 10:40:27 +05:30
|
|
|
|
# (longName, shortName, type , default, flags, descrip , argDescrip)
|
|
|
|
|
popt_table = [
|
2005-01-30 05:04:09 +05:30
|
|
|
|
("open", 'O', str, None, 0, "Open file", "FILENAME"),
|
2004-12-22 07:26:37 +05:30
|
|
|
|
("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 10:40:27 +05:30
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
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-30 05:04:09 +05:30
|
|
|
|
"open=",
|
2004-06-21 10:40:27 +05:30
|
|
|
|
"import=",
|
|
|
|
|
"output=",
|
|
|
|
|
"format=",
|
|
|
|
|
"action=",
|
2004-12-22 07:26:37 +05:30
|
|
|
|
"options=",
|
2004-06-21 10:40:27 +05:30
|
|
|
|
]
|
2003-05-17 09:44:13 +05:30
|
|
|
|
|
2005-01-30 05:04:09 +05:30
|
|
|
|
shortopts = "O:i:o:f:a:p:?"
|
2003-05-17 09:44:13 +05:30
|
|
|
|
|
2002-10-20 19:55:16 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Constants
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
2005-03-03 11:03:22 +05:30
|
|
|
|
child_rel_list = [
|
|
|
|
|
_("None"), _("Birth"), _("Adopted"), _("Stepchild"),
|
|
|
|
|
_("Sponsored"), _("Foster"), _("Unknown"), _("Other"), ]
|
|
|
|
|
|
|
|
|
|
child_rel_notrans = [
|
|
|
|
|
"None", "Birth", "Adopted", "Stepchild",
|
|
|
|
|
"Sponsored", "Foster", "Unknown", "Other", ]
|
|
|
|
|
|
2004-02-15 12:51:29 +05:30
|
|
|
|
child_relations = TransTable( {
|
2002-10-20 19:55:16 +05:30
|
|
|
|
_("Birth") : "Birth",
|
|
|
|
|
_("Adopted") : "Adopted",
|
|
|
|
|
_("Stepchild") : "Stepchild",
|
2003-02-04 00:54:27 +05:30
|
|
|
|
_("Sponsored") : "Sponsored",
|
2002-10-20 19:55:16 +05:30
|
|
|
|
_("Foster") : "Foster",
|
|
|
|
|
_("None") : "None",
|
|
|
|
|
_("Unknown") : "Unknown",
|
|
|
|
|
_("Other") : "Other",
|
2004-02-15 12:51:29 +05:30
|
|
|
|
})
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Confidence
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
confidence = [
|
2003-07-16 06:28:10 +05:30
|
|
|
|
_("Very High"),
|
2002-10-20 19:55:16 +05:30
|
|
|
|
_("High"),
|
2003-07-16 06:28:10 +05:30
|
|
|
|
_("Normal"),
|
|
|
|
|
_("Low"),
|
|
|
|
|
_("Very Low")
|
2002-10-20 19:55:16 +05:30
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
2005-05-27 19:34:53 +05:30
|
|
|
|
# Event constants
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
EVENT_UNKNOWN = -1
|
|
|
|
|
EVENT_CUSTOM = 0
|
|
|
|
|
EVENT_MARRIAGE = 1
|
|
|
|
|
EVENT_MARR_SETTL = 2
|
|
|
|
|
EVENT_MARR_LIC = 3
|
|
|
|
|
EVENT_MARR_CONTR = 4
|
|
|
|
|
EVENT_MARR_BANNS = 5
|
|
|
|
|
EVENT_ENGAGEMENT = 6
|
|
|
|
|
EVENT_DIVORCE = 7
|
|
|
|
|
EVENT_DIV_FILING = 8
|
|
|
|
|
EVENT_ANNULMENT = 9
|
|
|
|
|
EVENT_MARR_ALT = 10
|
|
|
|
|
EVENT_ADOPT = 11
|
|
|
|
|
EVENT_BIRTH = 12
|
|
|
|
|
EVENT_DEATH = 13
|
|
|
|
|
EVENT_ADULT_CHRISTEN = 14
|
|
|
|
|
EVENT_BAPTISM = 15
|
|
|
|
|
EVENT_BAR_MITZVAH = 16
|
|
|
|
|
EVENT_BAS_MITZVAH = 17
|
|
|
|
|
EVENT_BLESS = 18
|
|
|
|
|
EVENT_BURIAL = 19
|
|
|
|
|
EVENT_CAUSE_DEATH = 20
|
|
|
|
|
EVENT_CENSUS = 21
|
|
|
|
|
EVENT_CHRISTEN = 22
|
|
|
|
|
EVENT_CONFIRMATION = 23
|
|
|
|
|
EVENT_CREMATION = 24
|
|
|
|
|
EVENT_DEGREE = 25
|
|
|
|
|
EVENT_EDUCATION = 26
|
|
|
|
|
EVENT_ELECTED = 27
|
|
|
|
|
EVENT_EMIGRATION = 28
|
|
|
|
|
EVENT_FIRST_COMMUN = 29
|
|
|
|
|
EVENT_IMMIGRATION = 30
|
|
|
|
|
EVENT_GRADUATION = 31
|
|
|
|
|
EVENT_MED_INFO = 32
|
|
|
|
|
EVENT_MILITARY_SERV = 33
|
|
|
|
|
EVENT_NATURALIZATION = 34
|
|
|
|
|
EVENT_NOB_TITLE = 35
|
|
|
|
|
EVENT_NUM_MARRIAGES = 36
|
|
|
|
|
EVENT_OCCUPATION = 37
|
|
|
|
|
EVENT_ORDINATION = 38
|
|
|
|
|
EVENT_PROBATE = 39
|
|
|
|
|
EVENT_PROPERTY = 40
|
|
|
|
|
EVENT_RELIGION = 41
|
|
|
|
|
EVENT_RESIDENCE = 42
|
|
|
|
|
EVENT_RETIREMENT = 43
|
|
|
|
|
EVENT_WILL = 44
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
2004-01-21 04:57:39 +05:30
|
|
|
|
|
2005-05-27 19:34:53 +05:30
|
|
|
|
familyConstantEvents = {
|
|
|
|
|
EVENT_ANNULMENT : "ANUL",
|
|
|
|
|
EVENT_DIV_FILING : "DIVF",
|
|
|
|
|
EVENT_DIVORCE : "DIV",
|
|
|
|
|
EVENT_ENGAGEMENT : "ENGA",
|
|
|
|
|
EVENT_MARR_BANNS : "MARB",
|
|
|
|
|
EVENT_MARR_CONTR : "MARC",
|
|
|
|
|
EVENT_MARR_LIC : "MARL",
|
|
|
|
|
EVENT_MARR_SETTL : "MARS",
|
|
|
|
|
EVENT_MARRIAGE : "MARR"
|
|
|
|
|
}
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
2005-05-27 19:34:53 +05:30
|
|
|
|
family_events = {
|
|
|
|
|
EVENT_UNKNOWN : _("Unknown"),
|
|
|
|
|
EVENT_CUSTOM : _("Custom"),
|
|
|
|
|
EVENT_MARRIAGE : _("Marriage"),
|
|
|
|
|
EVENT_MARR_SETTL : _("Marriage Settlement"),
|
|
|
|
|
EVENT_MARR_LIC : _("Marriage License"),
|
|
|
|
|
EVENT_MARR_CONTR : _("Marriage Contract"),
|
|
|
|
|
EVENT_MARR_BANNS : _("Marriage Banns"),
|
|
|
|
|
EVENT_ENGAGEMENT : _("Engagement"),
|
2005-05-27 23:13:04 +05:30
|
|
|
|
EVENT_DIVORCE : _("Divorce"),
|
2005-05-27 19:34:53 +05:30
|
|
|
|
EVENT_DIV_FILING : _("Divorce Filing"),
|
|
|
|
|
EVENT_ANNULMENT : _("Annulment"),
|
|
|
|
|
EVENT_MARR_ALT : _("Alternate Marriage"),
|
|
|
|
|
}
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
personalConstantEvents = {
|
2005-05-27 19:34:53 +05:30
|
|
|
|
EVENT_ADOPT : "ADOP",
|
|
|
|
|
EVENT_ADULT_CHRISTEN : "CHRA",
|
|
|
|
|
EVENT_BIRTH : "BIRT",
|
|
|
|
|
EVENT_DEATH : "DEAT",
|
|
|
|
|
EVENT_BAPTISM : "BAPM",
|
|
|
|
|
EVENT_BAR_MITZVAH : "BARM",
|
|
|
|
|
EVENT_BAS_MITZVAH : "BASM",
|
|
|
|
|
EVENT_BLESS : "BLES",
|
|
|
|
|
EVENT_BURIAL : "BURI",
|
|
|
|
|
EVENT_CAUSE_DEATH : "CAUS",
|
|
|
|
|
EVENT_ORDINATION : "ORDI",
|
|
|
|
|
EVENT_CENSUS : "CENS",
|
|
|
|
|
EVENT_CHRISTEN : "CHR" ,
|
|
|
|
|
EVENT_CONFIRMATION : "CONF",
|
|
|
|
|
EVENT_CREMATION : "CREM",
|
|
|
|
|
EVENT_DEGREE : "",
|
|
|
|
|
EVENT_DIV_FILING : "DIVF",
|
|
|
|
|
EVENT_EDUCATION : "EDUC",
|
|
|
|
|
EVENT_ELECTED : "",
|
|
|
|
|
EVENT_ELECTED : "EMIG",
|
|
|
|
|
EVENT_FIRST_COMMUN : "FCOM",
|
|
|
|
|
EVENT_GRADUATION : "GRAD",
|
|
|
|
|
EVENT_MED_INFO : "",
|
|
|
|
|
EVENT_MILITARY_SERV : "",
|
|
|
|
|
EVENT_NATURALIZATION : "NATU",
|
|
|
|
|
EVENT_NOB_TITLE : "TITL",
|
|
|
|
|
EVENT_NUM_MARRIAGES : "NMR",
|
|
|
|
|
EVENT_IMMIGRATION : "IMMI",
|
|
|
|
|
EVENT_OCCUPATION : "OCCU",
|
|
|
|
|
EVENT_PROBATE : "PROB",
|
|
|
|
|
EVENT_PROPERTY : "PROP",
|
|
|
|
|
EVENT_RELIGION : "RELI",
|
|
|
|
|
EVENT_RESIDENCE : "RESI",
|
|
|
|
|
EVENT_RETIREMENT : "RETI",
|
|
|
|
|
EVENT_WILL : "WILL",
|
2002-10-20 19:55:16 +05:30
|
|
|
|
}
|
|
|
|
|
|
2005-05-27 19:34:53 +05:30
|
|
|
|
personal_events = {
|
|
|
|
|
EVENT_UNKNOWN : _("Unknown"),
|
|
|
|
|
EVENT_CUSTOM : _("Custom"),
|
|
|
|
|
EVENT_ADOPT : _("Adopted"),
|
|
|
|
|
EVENT_BIRTH : _("Birth"),
|
|
|
|
|
EVENT_DEATH : _("Death"),
|
|
|
|
|
EVENT_ADULT_CHRISTEN : _("Adult Christening"),
|
|
|
|
|
EVENT_BAPTISM : _("Baptism"),
|
|
|
|
|
EVENT_BAR_MITZVAH : _("Bar Mitzvah"),
|
|
|
|
|
EVENT_BAS_MITZVAH : _("Bas Mitzvah"),
|
|
|
|
|
EVENT_BLESS : _("Blessing"),
|
|
|
|
|
EVENT_BURIAL : _("Burial"),
|
|
|
|
|
EVENT_CAUSE_DEATH : _("Cause Of Death"),
|
|
|
|
|
EVENT_CENSUS : _("Census"),
|
|
|
|
|
EVENT_CHRISTEN : _("Christening"),
|
|
|
|
|
EVENT_CONFIRMATION : _("Confirmation"),
|
|
|
|
|
EVENT_CREMATION : _("Cremation"),
|
|
|
|
|
EVENT_DEGREE : _("Degree"),
|
|
|
|
|
EVENT_DIV_FILING : _("Divorce Filing"),
|
|
|
|
|
EVENT_EDUCATION : _("Education"),
|
|
|
|
|
EVENT_ELECTED : _("Elected"),
|
|
|
|
|
EVENT_EMIGRATION : _("Emigration"),
|
|
|
|
|
EVENT_FIRST_COMMUN : _("First Communion"),
|
|
|
|
|
EVENT_IMMIGRATION : _("Immigration"),
|
|
|
|
|
EVENT_GRADUATION : _("Graduation"),
|
|
|
|
|
EVENT_MED_INFO : _("Medical Information"),
|
|
|
|
|
EVENT_MILITARY_SERV : _("Military Service"),
|
|
|
|
|
EVENT_NATURALIZATION : _("Naturalization"),
|
|
|
|
|
EVENT_NOB_TITLE : _("Nobility Title"),
|
|
|
|
|
EVENT_NUM_MARRIAGES : _("Number of Marriages"),
|
|
|
|
|
EVENT_OCCUPATION : _("Occupation"),
|
|
|
|
|
EVENT_ORDINATION : _("Ordination"),
|
|
|
|
|
EVENT_PROBATE : _("Probate"),
|
|
|
|
|
EVENT_PROPERTY : _("Property"),
|
|
|
|
|
EVENT_RELIGION : _("Religion"),
|
|
|
|
|
EVENT_RESIDENCE : _("Residence"),
|
|
|
|
|
EVENT_RETIREMENT : _("Retirement"),
|
|
|
|
|
EVENT_WILL : _("Will")
|
|
|
|
|
}
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
|
2003-08-07 09:24:10 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Merged functions for events: personal, family, whatever else
|
|
|
|
|
# there might be in the future.
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
def display_event(st):
|
2004-01-21 08:26:53 +05:30
|
|
|
|
if personal_events.has_key(st):
|
|
|
|
|
return personal_events.find_value(st)
|
|
|
|
|
if family_events.has_key(st):
|
|
|
|
|
return family_events.find_value(st)
|
2004-01-21 04:57:39 +05:30
|
|
|
|
return _(st)
|
2003-08-07 09:24:10 +05:30
|
|
|
|
|
|
|
|
|
def save_event(st):
|
2004-01-21 08:26:53 +05:30
|
|
|
|
if personal_events.has_value(st):
|
|
|
|
|
return personal_events.find_key(st)
|
|
|
|
|
if family_events.has_value(st):
|
|
|
|
|
return family_events.find_key(st)
|
2004-01-21 04:57:39 +05:30
|
|
|
|
return st
|
2003-08-07 09:24:10 +05:30
|
|
|
|
|
2002-10-20 19:55:16 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
personalConstantAttributes = {
|
|
|
|
|
"Caste" : "CAST",
|
|
|
|
|
"Description" : "DSCR",
|
|
|
|
|
"Identification Number" : "IDNO",
|
|
|
|
|
"National Origin" : "NATI",
|
2004-11-15 07:37:21 +05:30
|
|
|
|
"Number of Children" : "NCHI",
|
2002-10-20 19:55:16 +05:30
|
|
|
|
"Social Security Number": "SSN"
|
|
|
|
|
}
|
|
|
|
|
|
2004-01-21 04:57:39 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
2004-01-21 08:26:53 +05:30
|
|
|
|
personal_attributes = TransTable({
|
2002-10-20 19:55:16 +05:30
|
|
|
|
"Caste" : _("Caste"),
|
|
|
|
|
"Description" : _("Description"),
|
|
|
|
|
"Identification Number" : _("Identification Number"),
|
|
|
|
|
"National Origin" : _("National Origin"),
|
2004-11-15 07:37:21 +05:30
|
|
|
|
"Number of Children" : _("Number of Children"),
|
2002-10-20 19:55:16 +05:30
|
|
|
|
"Social Security Number": _("Social Security Number")
|
2004-01-21 04:57:39 +05:30
|
|
|
|
})
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
def display_pattr(st):
|
2004-01-21 08:26:53 +05:30
|
|
|
|
return personal_attributes.find_value(st)
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
def save_pattr(st):
|
2004-01-21 08:26:53 +05:30
|
|
|
|
return personal_attributes.find_key(st)
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
familyConstantAttributes = {
|
|
|
|
|
"Number of Children" : "NCHI",
|
|
|
|
|
}
|
|
|
|
|
|
2004-01-21 08:26:53 +05:30
|
|
|
|
family_attributes = TransTable({"Number of Children" : _("Number of Children")})
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
def display_fattr(st):
|
2004-01-21 08:26:53 +05:30
|
|
|
|
return family_attributes.find_value(st)
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
2003-08-07 09:24:10 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# Merged functions for attributes: personal, family, whatever else
|
|
|
|
|
# there might be in the future.
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2005-03-08 22:48:33 +05:30
|
|
|
|
def display_attr(st):
|
|
|
|
|
if personal_attributes.has_value(st):
|
|
|
|
|
return personal_attributes.find_value(st)
|
|
|
|
|
if family_attributes.has_value(st):
|
|
|
|
|
return family_attributes.find_value(st)
|
|
|
|
|
return _(st)
|
|
|
|
|
|
2003-08-07 09:24:10 +05:30
|
|
|
|
def save_attr(st):
|
2004-01-21 08:26:53 +05:30
|
|
|
|
if personal_attributes.has_value(st):
|
|
|
|
|
return personal_attributes.find_key(st)
|
|
|
|
|
if family_attributes.has_value(st):
|
|
|
|
|
return family_attributes.find_key(st)
|
2005-03-08 23:11:30 +05:30
|
|
|
|
return st
|
2003-08-07 09:24:10 +05:30
|
|
|
|
|
2002-10-20 19:55:16 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
2004-01-21 04:57:39 +05:30
|
|
|
|
# Family Relationship Translation table
|
2002-10-20 19:55:16 +05:30
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
2004-07-31 09:21:34 +05:30
|
|
|
|
|
|
|
|
|
family_relations = [
|
|
|
|
|
(_("Married"), _("A legal or common-law relationship between a husband and wife")),
|
|
|
|
|
(_("Unmarried"), _("No legal or common-law relationship between man and woman")),
|
|
|
|
|
(_("Civil Union"), _("An established relationship between members of the same sex")),
|
|
|
|
|
(_("Unknown"), _("Unknown relationship between a man and woman")),
|
|
|
|
|
(_("Other"), _("An unspecified relationship between a man and woman"))
|
|
|
|
|
]
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
2004-01-21 08:26:53 +05:30
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2004-01-21 04:57:39 +05:30
|
|
|
|
def save_frel(st):
|
2004-08-01 09:51:31 +05:30
|
|
|
|
try:
|
|
|
|
|
return family_relations[st][0]
|
|
|
|
|
except:
|
|
|
|
|
return _("Unknown")
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
2004-01-21 04:57:39 +05:30
|
|
|
|
|
|
|
|
|
NameTypesMap = TransTable({
|
|
|
|
|
"Also Known As" : _("Also Known As"),
|
|
|
|
|
"Birth Name" : _("Birth Name"),
|
|
|
|
|
"Married Name" : _("Married Name"),
|
|
|
|
|
"Other Name" : _("Other Name"),
|
|
|
|
|
})
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
def init_personal_event_list():
|
2005-05-27 23:13:04 +05:30
|
|
|
|
return
|
2004-01-21 08:26:53 +05:30
|
|
|
|
p = personal_events.get_values()
|
2002-10-20 19:55:16 +05:30
|
|
|
|
p.sort()
|
|
|
|
|
return p
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
def init_marriage_event_list():
|
2005-05-27 23:13:04 +05:30
|
|
|
|
return
|
2004-01-21 08:26:53 +05:30
|
|
|
|
p = family_events.get_values()
|
2002-10-20 19:55:16 +05:30
|
|
|
|
p.sort()
|
|
|
|
|
return p
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
def init_personal_attribute_list():
|
2004-01-21 08:26:53 +05:30
|
|
|
|
p = personal_attributes.get_values()
|
2002-10-20 19:55:16 +05:30
|
|
|
|
p.sort()
|
|
|
|
|
return p
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
def init_family_attribute_list():
|
2004-01-21 08:26:53 +05:30
|
|
|
|
p = family_attributes.get_values()
|
2002-10-20 19:55:16 +05:30
|
|
|
|
p.sort()
|
|
|
|
|
return p
|
|
|
|
|
|
2005-05-27 23:13:04 +05:30
|
|
|
|
personalEvents = [] #init_personal_event_list()
|
2002-10-20 19:55:16 +05:30
|
|
|
|
personalAttributes = init_personal_attribute_list()
|
2005-05-27 23:13:04 +05:30
|
|
|
|
marriageEvents = [] #init_marriage_event_list()
|
|
|
|
|
defaultMarriageEvent = "" #family_events.find_value("Marriage")
|
2002-10-20 19:55:16 +05:30
|
|
|
|
familyAttributes = init_family_attribute_list()
|
|
|
|
|
places = []
|
|
|
|
|
surnames = []
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
#Updated LDS Temple Codes from:
|
|
|
|
|
#http://www.geocities.com/rgpassey/temple/abclist.htm
|
|
|
|
|
#Confirmed against Temple Codes list recieved from Raliegh Temple
|
|
|
|
|
#Last update: 1/12/02
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
lds_temple_codes = {
|
|
|
|
|
"Aba, Nigeria" : "ABA", #1 Added
|
|
|
|
|
"Accra, Ghana" : "ACCRA", #2 Added
|
|
|
|
|
"Adelaide, Australia" : "ADELA", #3 Added
|
|
|
|
|
"Albuquerque, New Mexico" : "ALBUQ", #4 Added
|
|
|
|
|
"Anchorage, Alaska" : "ANCHO", #6 Added
|
|
|
|
|
"Apia, Samoa" : "APIA", #7
|
|
|
|
|
"Asuncion, Paraguay" : "ASUNC", #8 Added
|
|
|
|
|
"Atlanta, Georgia" : "ATLAN", #9
|
|
|
|
|
"Baton Rouge, Louisiana" : "BROUG", #10 Added
|
|
|
|
|
"Bern, Switzerland" : "SWISS", #11
|
|
|
|
|
"Billings, Montana" : "BILLI", #12 Added
|
|
|
|
|
"Birmingham, Alabama" : "BIRMI", #13 Added
|
|
|
|
|
"Bismarck, North Dakota" : "BISMA", #14 Added
|
|
|
|
|
"Bogota, Columbia" : "BOGOT", #15
|
|
|
|
|
"Boise, Idaho" : "BOISE", #16
|
|
|
|
|
"Boston, Massachusetts" : "BOSTO", #17 Added
|
|
|
|
|
"Bountiful, Utah" : "BOUNT", #18
|
|
|
|
|
"Brisban, Australia" : "BRISB", #19 Added
|
|
|
|
|
"Buenos Aires, Argentina" : "BAIRE", #20
|
|
|
|
|
"Campinas, Brazil" : "CAMPI", #21 Added
|
|
|
|
|
"Caracas, Venezuela" : "CARAC", #22 Added
|
|
|
|
|
"Cardston, Alberta" : "ALBER", #23
|
|
|
|
|
"Chicago, Illinois" : "CHICA", #24
|
|
|
|
|
"Ciudad Juarez, Chihuahua" : "CIUJU", #25 Added
|
|
|
|
|
"Cochabamba, Boliva" : "COCHA", #26
|
|
|
|
|
"Colonia Juarez, Chihuahua" : "COLJU", #27 Added
|
|
|
|
|
"Columbia, South Carolina" : "COLSC", #28 Added
|
|
|
|
|
"Columbia River, Washington" : "CRIVE", #121 Added
|
|
|
|
|
"Columbus, Ohio" : "COLUM", #29 Added
|
|
|
|
|
"Copenhagen, Denmark" : "COPEN", #30 Added
|
2003-06-11 09:25:09 +05:30
|
|
|
|
"Curitiba, Brazil" : "CURIT",
|
|
|
|
|
"Manhattan, New York" : "MANHA",
|
|
|
|
|
"Panama City, Panama" : "PCITY",
|
2002-10-20 19:55:16 +05:30
|
|
|
|
"Dallas, Texas" : "DALLA", #31
|
|
|
|
|
"Denver, Colorado" : "DENVE", #32
|
|
|
|
|
"Detroit, Michigan" : "DETRO", #33 Added
|
|
|
|
|
"Edmonton, Alberta" : "EDMON", #34 Added
|
|
|
|
|
"Frankfurt, Germany" : "FRANK", #35
|
|
|
|
|
"Fresno, California" : "FRESN", #36 Added
|
|
|
|
|
"Freiberg, Germany" : "FREIB", #37
|
|
|
|
|
"Fukuoka, Japan" : "FUKUO", #38 Added
|
|
|
|
|
"Guadalajara, Jalisco" : "GUADA", #39 Added
|
|
|
|
|
"Guatamala City, Guatamala" : "GUATE", #40
|
|
|
|
|
"Guayaquil, Ecuador" : "GUAYA", #41
|
|
|
|
|
"Halifax, Noca Scotia" : "HALIF", #42 Added
|
|
|
|
|
"Hamilton, New Zealand" : "NZEAL", #43
|
|
|
|
|
"Harrison, New York" : "NYORK", #44 Added
|
|
|
|
|
"Hartford, Connecticut" : "HARTF", #Can not find in list used. ?
|
|
|
|
|
"Helsinki, Finland" : "HELSI", #45 Added
|
|
|
|
|
"Hermosillo, Sonora" : "HERMO", #46 Added
|
|
|
|
|
"Hong Kong, China" : "HKONG", #47
|
|
|
|
|
"Houston, Texas" : "HOUST", #48 Added
|
|
|
|
|
"Idaho Falls, Idaho" : "IFALL", #49
|
|
|
|
|
"Johannesburg, South Africa" : "JOHAN", #50
|
2005-05-03 09:36:03 +05:30
|
|
|
|
"Jordan River, Utah" : "JRIVE", #111
|
2002-10-20 19:55:16 +05:30
|
|
|
|
"Kialua Kona, Hawaii" : "KONA", #51 Added
|
|
|
|
|
"Kiev, Ukraine" : "KIEV", #52 Added
|
|
|
|
|
"Laie, Hawaii" : "HAWAI", #54
|
|
|
|
|
"Las Vegas, Nevada" : "LVEGA", #55
|
|
|
|
|
"Lima, Peru" : "LIMA" , #56
|
|
|
|
|
"Logan, Utah" : "LOGAN", #57
|
|
|
|
|
"London, England" : "LONDO", #58
|
|
|
|
|
"Los Angeles, California" : "LANGE", #59
|
|
|
|
|
"Louisville, Kentucky" : "LOUIS", #60 Added
|
|
|
|
|
"Lubbock, Texas" : "LUBBO", #61 Added
|
|
|
|
|
"Madrid, Spain" : "MADRI", #62
|
|
|
|
|
"Manila, Philippines" : "MANIL", #63
|
|
|
|
|
"Manti, Utah" : "MANTI", #64
|
|
|
|
|
"Medford, Oregon" : "MEDFO", #65 Added
|
|
|
|
|
"Melbourne, Australia" : "MELBO", #66 Added
|
|
|
|
|
"Melphis, Tennessee" : "MEMPH", #67 Added
|
|
|
|
|
"Merida, Yucatan" : "MERID", #68 Added
|
|
|
|
|
"Mesa, Arizona" : "ARIZO", #69
|
|
|
|
|
"Mexico City, Mexico" : "MEXIC", #70
|
|
|
|
|
"Monterrey, Nuevo Leon" : "MONTE", #71 Added
|
|
|
|
|
"Montevideo, Uruguay" : "MNTVD", #72
|
|
|
|
|
"Monticello, Utah" : "MONTI", #73 Added
|
|
|
|
|
"Montreal, Quebec" : "MONTR", #74 Added
|
2005-05-03 09:36:03 +05:30
|
|
|
|
"Mt. Timpanogos, Utah" : "MTIMP", #5
|
2002-10-20 19:55:16 +05:30
|
|
|
|
"Nashville, Tennessee" : "NASHV", #75
|
|
|
|
|
"Nauvoo, Illinois" : "NAUVO", #76
|
|
|
|
|
"Nauvoo, Illinois (New)" : "NAUV2", #Rebuilt Added
|
|
|
|
|
"Newport Beach, California" : "NBEAC", #77 Added
|
|
|
|
|
"Nuku'alofa, Tonga" : "NUKUA", #78
|
|
|
|
|
"Oakland, California" : "OAKLA", #79
|
|
|
|
|
"Oaxaca, Oaxaca" : "OAKAC", #80 Added
|
|
|
|
|
"Ogden, Utah" : "OGDEN", #81
|
|
|
|
|
"Oklahoma City, Oklahoma" : "OKLAH", #82 Added
|
|
|
|
|
"Orlando, Florida" : "ORLAN", #84
|
|
|
|
|
"Palmayra, New York" : "PALMY", #85 Added
|
|
|
|
|
"Papeete, Tahiti" : "PAPEE", #86
|
|
|
|
|
"Perth, Australia" : "PERTH", #87 Added
|
|
|
|
|
"Portland, Oregon" : "PORTL", #88
|
|
|
|
|
"Porto Alegre, Brazil" : "PALEG", #89 Added
|
|
|
|
|
"Preston, England" : "PREST", #90
|
|
|
|
|
"Provo, Utah" : "PROVO", #91
|
|
|
|
|
"Raleigh, North Carolina" : "RALEI", #92 Added
|
|
|
|
|
"Recife, Brazil" : "RECIF", #93
|
|
|
|
|
"Redlands, California" : "REDLA", #94 Added
|
|
|
|
|
"Regina, Saskatchewan" : "REGIN", #95 Added
|
|
|
|
|
"Reno, Nevada" : "RENO", #96 Added
|
|
|
|
|
"Sacramento, California" : "SACRA", #97 Added
|
|
|
|
|
"St. George, Utah" : "SGEOR", #98
|
|
|
|
|
"St. Louis, Missouri" : "SLOUI", #99
|
|
|
|
|
"St. Paul, Minnesota" : "SPMIN", #100 Added
|
|
|
|
|
"Salt Lake City, Utah" : "SLAKE", #101
|
|
|
|
|
"San Diego, California" : "SDIEG", #102
|
|
|
|
|
"San Antonio, Texas" : "ANTON", #103 Added
|
|
|
|
|
"San Jose, Costa Rica" : "SJOSE", #104 Added
|
|
|
|
|
"Santiago, Chile" : "SANTI", #105
|
|
|
|
|
"Santo Domingo, Dominican Republic" : "SDOMI", #106
|
|
|
|
|
"Sao Paulo, Brazil" : "SPAUL", #107
|
|
|
|
|
"Seattle, Washington" : "SEATT", #108
|
|
|
|
|
"Seoul, South Korea" : "SEOUL", #109
|
|
|
|
|
"Snowflake, Arizona" : "SNOWF", #110 Added
|
|
|
|
|
"Spokane, Washington" : "SPOKA", #112
|
|
|
|
|
"Stockholm, Sweden" : "STOCK", #113
|
|
|
|
|
"Suva, Fiji" : "SUVA", #114 Added
|
|
|
|
|
"Sydney, Australia" : "SYDNE", #115
|
|
|
|
|
"Taipei, Taiwan" : "TAIPE", #116
|
|
|
|
|
"Tampico, Tamaulipas" : "TAMPI", #117 Added
|
|
|
|
|
"The Hague, Netherlands" : "HAGUE", #118 Added
|
|
|
|
|
"Tokyo, Japan" : "TOKYO", #119
|
|
|
|
|
"Toronto, Ontario" : "TORNO", #120
|
|
|
|
|
"Tuxtla Gutierrez, Chiapas" : "TGUTI", #122 Added
|
|
|
|
|
"Vera Cruz, Vera Cruz" : "VERAC", #123 Added
|
|
|
|
|
"Vernal, Utah" : "VERNA", #124
|
|
|
|
|
"Villahermosa, Tabasco" : "VILLA", #125 Added
|
|
|
|
|
"Washington, D.C." : "WASHI", #126
|
2005-05-03 09:36:03 +05:30
|
|
|
|
"Winter Quarters, Nebraska" : "WINTE", #83 Added
|
2002-10-20 19:55:16 +05:30
|
|
|
|
#Other Places
|
|
|
|
|
"Endowment House" : "EHOUS", #Not a temple per se
|
|
|
|
|
"President's Office" : "POFFI", #Not a temple per se
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lds_temple_to_abrev = {
|
|
|
|
|
"ABA" : "Aba, Nigeria",
|
|
|
|
|
"ACCRA": "Accra, Ghana",
|
|
|
|
|
"ADELA": "Adelaide, Australia",
|
|
|
|
|
"ALBUQ": "Albuquerque, New Mexico",
|
|
|
|
|
"ANCHO": "Anchorage, Alaska",
|
|
|
|
|
"APIA" : "Apia, Samoa",
|
|
|
|
|
"AP" : "Apia, Samoa",
|
|
|
|
|
"ASUNC": "Asuncion, Paraguay",
|
|
|
|
|
"ATLAN": "Atlanta, Georgia",
|
|
|
|
|
"AT" : "Atlanta, Georgia",
|
|
|
|
|
"BROUG": "Baton Rouge, Louisiana",
|
|
|
|
|
"SWISS": "Bern, Switzerland",
|
|
|
|
|
"SW" : "Bern, Switzerland",
|
|
|
|
|
"BILLI": "Billings, Montana",
|
|
|
|
|
"BIRMI": "Birmingham, Alabama",
|
|
|
|
|
"BISMA": "Bismarck, North Dakota",
|
|
|
|
|
"BOGOT": "Bogota, Columbia",
|
|
|
|
|
"BG" : "Bogota, Columbia",
|
|
|
|
|
"BOISE": "Boise Idaho",
|
|
|
|
|
"BO" : "Boise Idaho",
|
|
|
|
|
"BOSTO": "Boston, Massachusetts",
|
|
|
|
|
"BOUNT": "Bountiful, Utah",
|
|
|
|
|
"BRISB": "Brisban, Australia",
|
|
|
|
|
"BAIRE": "Buenos Aires, Argentina",
|
|
|
|
|
"BA" : "Buenos Aires, Argentina",
|
|
|
|
|
"CAMPI": "Campinas, Brazil",
|
|
|
|
|
"CARAC": "Caracas, Venezuela",
|
|
|
|
|
"ALBER": "Cardston, Alberta",
|
|
|
|
|
"CHICA": "Chicago, Illinois",
|
|
|
|
|
"CH" : "Chicago, Illinois",
|
|
|
|
|
"CIUJU": "Ciudad Juarez, Chihuahua",
|
|
|
|
|
"COCHA": "Cochabamba, Boliva",
|
|
|
|
|
"COLJU": "Colonia Juarez, Chihuahua",
|
|
|
|
|
"COLSC": "Columbia, South Carolina",
|
|
|
|
|
"CRIVE": "Columbia River, Washington",
|
|
|
|
|
"COLUM": "Columbus, Ohio",
|
|
|
|
|
"COPEN": "Copenhagen, Denmark",
|
|
|
|
|
"DALLA": "Dallas, Texas",
|
|
|
|
|
"DA" : "Dallas, Texas",
|
|
|
|
|
"DENVE": "Denver, Colorado",
|
|
|
|
|
"DV" : "Denver, Colorado",
|
|
|
|
|
"DETRO": "Detroit, Michigan",
|
|
|
|
|
"EDMON": "Edmonton, Alberta",
|
|
|
|
|
"FRANK": "Frankfurt, Germany",
|
|
|
|
|
"FR" : "Frankfurt, Germany",
|
|
|
|
|
"FRESN": "Fresno, California",
|
|
|
|
|
"FREIB": "Freiberg, Germany",
|
|
|
|
|
"FD" : "Freiberg, Germany",
|
|
|
|
|
"FUKUO": "Fukuoka, Japan",
|
|
|
|
|
"GUADA": "Guadalajara, Jalisco",
|
|
|
|
|
"GUATE": "Guatamala City, Guatamala",
|
|
|
|
|
"GA" : "Guatamala City, Guatamala",
|
|
|
|
|
"GUAYA": "Guayaquil, Ecuador",
|
|
|
|
|
"GY" : "Guayaquil, Ecuador",
|
|
|
|
|
"HALIF": "Halifax, Noca Scotia",
|
|
|
|
|
"NZEAL": "Hamilton, New Zealand",
|
|
|
|
|
"NZ" : "Hamilton, New Zealand",
|
|
|
|
|
"NYORK": "Harrison, New York",
|
|
|
|
|
"HARTF": "Hartford, Connecticut",
|
|
|
|
|
"HELSI": "Helsinki, Finland",
|
|
|
|
|
"HERMO": "Hermosillo, Sonora",
|
|
|
|
|
"HKONG": "Hong Kong, China",
|
|
|
|
|
"HOUST": "Houston, Texas",
|
|
|
|
|
"IFALL": "Idaho Falls, Idaho",
|
|
|
|
|
"JOHAN": "Johannesburg, South Africa",
|
|
|
|
|
"JO" : "Johannesburg, South Africa",
|
|
|
|
|
"JRIVE": "Jordan River (South Jordan), Utah",
|
|
|
|
|
"JR" : "Jordan River (South Jorhan), Utah",
|
|
|
|
|
"KONA" : "Kialua Kona, Hawaii",
|
|
|
|
|
"KIEV" : "Kiev, Ukraine",
|
|
|
|
|
"HAWAI": "Laie, Hawaii",
|
|
|
|
|
"HA" : "Laie, Hawaii",
|
|
|
|
|
"LVEGA": "Las Vegas, Nevada",
|
|
|
|
|
"LV" : "Las Vegas, Nevada",
|
|
|
|
|
"LIMA" : "Lima, Peru",
|
|
|
|
|
"LI" : "Lima, Peru",
|
|
|
|
|
"LOGAN": "Logan, Utah",
|
|
|
|
|
"LG" : "Logan, Utah",
|
|
|
|
|
"LONDO": "London, England",
|
|
|
|
|
"LD" : "London, England",
|
|
|
|
|
"LANGE": "Los Angeles, California",
|
|
|
|
|
"LA" : "Los Angeles, California",
|
|
|
|
|
"LOUIS": "Louisville, Kentucky",
|
|
|
|
|
"LUBBO": "Lubbock, Texas",
|
|
|
|
|
"MADRI": "Madrid, Spain",
|
|
|
|
|
"MANIL": "Manila, Philippines",
|
|
|
|
|
"MA" : "Manila, Philippines",
|
|
|
|
|
"MANTI": "Manti, Utah",
|
|
|
|
|
"MT" : "Manti, Utah",
|
|
|
|
|
"MEDFO": "Medford, Oregon",
|
|
|
|
|
"MELBO": "Melbourne, Australia",
|
|
|
|
|
"MEMPH": "Melphis, Tennessee",
|
|
|
|
|
"MERID": "Merida, Yucatan",
|
|
|
|
|
"ARIZO": "Mesa, Arizona",
|
|
|
|
|
"AZ" : "Mesa, Arizona",
|
|
|
|
|
"MEXIC": "Mexico City, Mexico",
|
|
|
|
|
"MX" : "Mexico City, Mexico",
|
|
|
|
|
"MONTE": "Monterrey, Nuevo Leon, Mexico",
|
|
|
|
|
"MNTVD": "Montevideo, Uruguay",
|
|
|
|
|
"MONTI": "Monticello, Utah",
|
|
|
|
|
"MONTR": "Montreal, Quebec",
|
|
|
|
|
"MTIMP": "Mt. Timpanogos (American Fork), Utah",
|
|
|
|
|
"NASHV": "Nashville, Tennessee",
|
|
|
|
|
"NAUVO": "Nauvoo, Illinois",
|
|
|
|
|
"NAUV2": "Nauvoo, Illinois (New)",
|
|
|
|
|
"NBEAC": "Newport Beach, California",
|
|
|
|
|
"NUKUA": "Nuku'alofa, Tonga",
|
|
|
|
|
"TG" : "Nuku'alofa, Tonga",
|
|
|
|
|
"OAKLA": "Oakland, California",
|
|
|
|
|
"OK" : "Oakland, California",
|
|
|
|
|
"OAKAC": "Oaxaca, Oaxaca",
|
|
|
|
|
"OGDEN": "Ogden, Utah",
|
|
|
|
|
"OG" : "Ogden, Utah",
|
|
|
|
|
"OKLAH": "Oklahoma City, Oklahoma",
|
|
|
|
|
"ORLAN": "Orlando, Florida",
|
|
|
|
|
"PALMY": "Palmayra, New York",
|
|
|
|
|
"PAPEE": "Papeete, Tahiti",
|
|
|
|
|
"TA" : "Papeete, Tahiti",
|
|
|
|
|
"PERTH": "Perth, Australia",
|
|
|
|
|
"PORTL": "Portland, Oregon",
|
|
|
|
|
"PT" : "Portland, Oregon",
|
|
|
|
|
"PALEG": "Porto Alegre, Brazil",
|
|
|
|
|
"PREST": "Preston, England",
|
|
|
|
|
"PROVO": "Provo, Utah",
|
|
|
|
|
"PV" : "Provo, Utah",
|
|
|
|
|
"RALEI": "Raleigh, North Carolina",
|
|
|
|
|
"RECIF": "Recife, Brazil",
|
|
|
|
|
"REDLA": "Redlands, California",
|
|
|
|
|
"REGIN": "Regina, Saskatchewan",
|
|
|
|
|
"RENO" : "Reno, Nevada",
|
|
|
|
|
"SACRA": "Sacramento, California",
|
|
|
|
|
"SGEOR": "St. George, Utah",
|
|
|
|
|
"SG" : "St. George, Utah",
|
|
|
|
|
"SLOUI": "St. Louis, Missouri",
|
|
|
|
|
"SPMIN": "St. Paul, Minnesota",
|
|
|
|
|
"SLAKE": "Salt Lake City, Utah",
|
|
|
|
|
"SL" : "Salt Lake City, Utah",
|
|
|
|
|
"SDIEG": "San Diego, California",
|
|
|
|
|
"SA" : "San Diego, California",
|
|
|
|
|
"ANTON": "San Antonio, Texas",
|
|
|
|
|
"SJOSE": "San Jose, Costa Rica",
|
|
|
|
|
"SANTI": "Santiago, Chile",
|
|
|
|
|
"SN" : "Santiago, Chile",
|
|
|
|
|
"SDOMI": "Santo Domingo, Dominican Republic",
|
|
|
|
|
"SPAUL": "Sao Paulo, Brazil",
|
|
|
|
|
"SP" : "Sao Paulo, Brazil",
|
|
|
|
|
"SEATT": "Seattle, Washington",
|
|
|
|
|
"SE" : "Seattle, Washington",
|
|
|
|
|
"SEOUL": "Seoul, South Korea",
|
|
|
|
|
"SO" : "Seoul, South Korea",
|
|
|
|
|
"SNOWF": "Snowflake, Arizona",
|
|
|
|
|
"SPOKA": "Spokane, Washington",
|
|
|
|
|
"STOCK": "Stockholm, Sweden",
|
|
|
|
|
"ST" : "Stockholm, Sweden",
|
|
|
|
|
"SUVA" : "Suva, Fiji",
|
|
|
|
|
"SYDNE": "Sydney, Australia",
|
|
|
|
|
"SD" : "Sydney, Australia",
|
|
|
|
|
"TAIPE": "Taipei, Taiwan",
|
|
|
|
|
"TP" : "Taipei, Taiwan",
|
|
|
|
|
"TAMPI": "Tampico, Tamaulipas",
|
|
|
|
|
"HAGUE": "The Hague, Netherlands",
|
|
|
|
|
"TOKYO": "Tokyo, Japan",
|
|
|
|
|
"TK" : "Tokyo, Japan",
|
|
|
|
|
"TORNO": "Toronto, Ontario",
|
|
|
|
|
"TR" : "Toronto, Ontario",
|
|
|
|
|
"TGUTI": "Tuxtla Gutierrez, Chiapas",
|
|
|
|
|
"VERAC": "Vera Cruz, Vera Cruz",
|
|
|
|
|
"VERNA": "Vernal, Utah",
|
|
|
|
|
"VILLA": "Villahermosa, Tabasco",
|
|
|
|
|
"WASHI": "Washington, D.C.",
|
|
|
|
|
"WA" : "Washington, D.C.",
|
|
|
|
|
"WINTE": "Winter Quarters (Omaha), Nebraska",
|
|
|
|
|
#Other Places
|
|
|
|
|
"EHOUS": "Endowment House",
|
|
|
|
|
"EH" : "Endowment House",
|
|
|
|
|
"POFFI": "President's Office",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lds_status = {
|
|
|
|
|
"BIC" : 1, "CANCELED" : 1, "CHILD" : 1,
|
|
|
|
|
"CLEARED" : 2, "COMPLETED" : 3, "DNS" : 4,
|
|
|
|
|
"INFANT" : 4, "PRE-1970" : 5, "QUALIFIED" : 6,
|
|
|
|
|
"DNS/CAN" : 7, "STILLBORN" : 7, "SUBMITTED" : 8,
|
|
|
|
|
"UNCLEARED" : 9,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
lds_baptism = [
|
2004-01-10 04:35:06 +05:30
|
|
|
|
_("<No Status>"), _("Child"), _("Cleared"), _("Completed"),
|
|
|
|
|
_("Infant"), _("Pre-1970"), _("Qualified"), _("Stillborn"),
|
|
|
|
|
_("Submitted"), _("Uncleared"),
|
2002-10-20 19:55:16 +05:30
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
lds_csealing = [
|
2004-01-10 04:35:06 +05:30
|
|
|
|
_("<No Status>"), _("BIC"), _("Cleared"), _("Completed"),
|
|
|
|
|
_("DNS"), _("Pre-1970"), _("Qualified"), _("Stillborn"),
|
|
|
|
|
_("Submitted"), _("Uncleared"),
|
2002-10-20 19:55:16 +05:30
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
lds_ssealing = [
|
2004-01-10 04:35:06 +05:30
|
|
|
|
_("<No Status>"), _("Canceled"), _("Cleared"), _("Completed"),
|
|
|
|
|
_("DNS"), _("Pre-1970"), _("Qualified"), _("DNS/CAN"),
|
|
|
|
|
_("Submitted"), _("Uncleared"),
|
2002-10-20 19:55:16 +05:30
|
|
|
|
]
|
|
|
|
|
|
2003-12-10 09:19:53 +05:30
|
|
|
|
|
|
|
|
|
notes_formats = [
|
|
|
|
|
_("Flowed"),
|
|
|
|
|
_("Preformatted"),
|
|
|
|
|
]
|
2004-04-11 08:07:13 +05:30
|
|
|
|
|
|
|
|
|
|
2004-12-22 07:26:37 +05:30
|
|
|
|
CATEGORY_TEXT = 0
|
|
|
|
|
CATEGORY_DRAW = 1
|
|
|
|
|
CATEGORY_CODE = 2
|
|
|
|
|
CATEGORY_WEB = 3
|
|
|
|
|
CATEGORY_VIEW = 4
|
|
|
|
|
CATEGORY_BOOK = 5
|
|
|
|
|
|
|
|
|
|
standalone_categories = {
|
|
|
|
|
CATEGORY_TEXT : _("Text Reports"),
|
|
|
|
|
CATEGORY_DRAW : _("Graphical Reports"),
|
2005-01-05 11:26:33 +05:30
|
|
|
|
CATEGORY_CODE : _("Code Generators"),
|
2004-12-22 07:26:37 +05:30
|
|
|
|
CATEGORY_WEB : _("Web Page"),
|
|
|
|
|
CATEGORY_VIEW : _("View"),
|
2005-01-05 11:26:33 +05:30
|
|
|
|
CATEGORY_BOOK : _("Books"),
|
2004-12-22 07:26:37 +05:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
book_categories = {
|
|
|
|
|
CATEGORY_TEXT : _("Text"),
|
|
|
|
|
CATEGORY_DRAW : _("Graphics"),
|
|
|
|
|
}
|