2007-02-04 01:38:41 +05:30
|
|
|
#
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
#
|
2007-02-20 06:09:10 +05:30
|
|
|
# Copyright (C) 2004-2007 Donald N. Allingham
|
2007-02-04 01:38:41 +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
|
|
|
|
#
|
|
|
|
|
|
|
|
# $Id: $
|
|
|
|
|
2007-02-20 06:09:10 +05:30
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# standard python modules
|
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
2007-02-03 22:41:05 +05:30
|
|
|
import os
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# constants
|
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
2007-09-08 11:24:02 +05:30
|
|
|
APP_GRAMPS = "application/x-gramps"
|
|
|
|
APP_GRAMPS_XML = "application/x-gramps-xml"
|
|
|
|
APP_GEDCOM = "application/x-gedcom"
|
|
|
|
APP_GRAMPS_PKG = "application/x-gramps-package"
|
|
|
|
APP_GENEWEB = "application/x-geneweb"
|
|
|
|
APP_VCARD = ["text/x-vcard","text/x-vcalendar"]
|
2007-02-03 22:41:05 +05:30
|
|
|
|
|
|
|
PERSON_KEY = 0
|
|
|
|
FAMILY_KEY = 1
|
|
|
|
SOURCE_KEY = 2
|
|
|
|
EVENT_KEY = 3
|
|
|
|
MEDIA_KEY = 4
|
|
|
|
PLACE_KEY = 5
|
|
|
|
REPOSITORY_KEY = 6
|
|
|
|
REFERENCE_KEY = 7
|
2007-02-20 06:09:10 +05:30
|
|
|
NOTE_KEY = 8
|
2007-02-03 22:41:05 +05:30
|
|
|
|
|
|
|
PERSON_COL_KEY = 'columns'
|
|
|
|
CHILD_COL_KEY = 'child_columns'
|
|
|
|
PLACE_COL_KEY = 'place_columns'
|
|
|
|
SOURCE_COL_KEY = 'source_columns'
|
|
|
|
MEDIA_COL_KEY = 'media_columns'
|
|
|
|
REPOSITORY_COL_KEY = 'repository_columns'
|
|
|
|
EVENT_COL_KEY = 'event_columns'
|
|
|
|
FAMILY_COL_KEY = 'family_columns'
|
2007-02-20 06:09:10 +05:30
|
|
|
NOTE_COL_KEY = 'note_columns'
|