2009-10-27 00:45:58 +05:30
|
|
|
#
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
#
|
|
|
|
# Copyright (C) 2009 Benny Malengier
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
|
2009-12-21 19:13:50 +05:30
|
|
|
# $Id$
|
2009-10-24 19:23:20 +05:30
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Comma _Separated Values Spreadsheet (CSV)
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
_mime_type = "text/x-comma-separated-values" # CSV Document
|
|
|
|
_mime_type_rfc_4180 = "text/csv" # CSV Document See rfc4180 for mime type
|
|
|
|
plg = newplugin()
|
|
|
|
plg.id = 'im_csv'
|
|
|
|
plg.name = _("Comma _Separated Values Spreadsheet (CSV)")
|
|
|
|
plg.description = _("Import data from CSV files")
|
|
|
|
plg.version = '1.0'
|
2010-03-07 04:17:25 +05:30
|
|
|
plg.gramps_target_version = '3.3'
|
2009-10-24 19:23:20 +05:30
|
|
|
plg.status = STABLE
|
|
|
|
plg.fname = 'ImportCsv.py'
|
|
|
|
plg.ptype = IMPORT
|
|
|
|
plg.import_function = 'importData'
|
|
|
|
plg.extension = "csv"
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# GEDCOM
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
plg = newplugin()
|
|
|
|
plg.id = 'im_ged'
|
|
|
|
plg.name = _('GEDCOM')
|
|
|
|
plg.description = _('GEDCOM is used to transfer data between genealogy programs. '
|
|
|
|
'Most genealogy software will accept a GEDCOM file as input.')
|
|
|
|
plg.version = '1.0'
|
2010-03-07 04:17:25 +05:30
|
|
|
plg.gramps_target_version = '3.3'
|
2009-10-24 19:23:20 +05:30
|
|
|
plg.status = STABLE
|
|
|
|
plg.fname = 'ImportGedcom.py'
|
|
|
|
plg.ptype = IMPORT
|
|
|
|
plg.import_function = 'importData'
|
|
|
|
plg.extension = "ged"
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Geneweb
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
plg = newplugin()
|
|
|
|
plg.id = 'im_geneweb'
|
|
|
|
plg.name = _('GeneWeb')
|
|
|
|
plg.description = _('Import data from GeneWeb files')
|
|
|
|
plg.version = '1.0'
|
2010-03-07 04:17:25 +05:30
|
|
|
plg.gramps_target_version = '3.3'
|
2009-10-24 19:23:20 +05:30
|
|
|
plg.status = STABLE
|
|
|
|
plg.fname = 'ImportGeneWeb.py'
|
|
|
|
plg.ptype = IMPORT
|
|
|
|
plg.import_function = 'importData'
|
|
|
|
plg.extension = "gw"
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# GRAMPS package (portable XML)
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
plg = newplugin()
|
|
|
|
plg.id = 'im_gpkg'
|
2009-11-18 01:44:53 +05:30
|
|
|
plg.name = _('Gramps package (portable XML)')
|
|
|
|
plg.description = _('Import data from a Gramps package (an archived XML '
|
2010-03-16 03:41:25 +05:30
|
|
|
'family tree together with the media object files.)')
|
2009-10-24 19:23:20 +05:30
|
|
|
plg.version = '1.0'
|
2010-03-07 04:17:25 +05:30
|
|
|
plg.gramps_target_version = '3.3'
|
2009-10-24 19:23:20 +05:30
|
|
|
plg.status = STABLE
|
|
|
|
plg.fname = 'ImportGpkg.py'
|
|
|
|
plg.ptype = IMPORT
|
|
|
|
plg.import_function = 'impData'
|
|
|
|
plg.extension = "gpkg"
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# GRAMPS XML database
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
plg = newplugin()
|
|
|
|
plg.id = 'im_gramps'
|
2009-11-18 01:44:53 +05:30
|
|
|
plg.name = _('Gramps XML Family Tree')
|
|
|
|
plg.description = _('The Gramps XML format is a text '
|
2009-10-24 19:23:20 +05:30
|
|
|
'version of a family tree. It is '
|
|
|
|
'read-write compatible with the '
|
2009-11-18 01:44:53 +05:30
|
|
|
'present Gramps database format.')
|
2009-10-24 19:23:20 +05:30
|
|
|
plg.version = '1.0'
|
2010-03-07 04:17:25 +05:30
|
|
|
plg.gramps_target_version = '3.3'
|
2009-10-24 19:23:20 +05:30
|
|
|
plg.status = STABLE
|
|
|
|
plg.fname = 'ImportXml.py'
|
|
|
|
plg.ptype = IMPORT
|
|
|
|
plg.import_function = 'importData'
|
|
|
|
plg.extension = "gramps"
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# GRDB database
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
plg = newplugin()
|
|
|
|
plg.id = 'im_grdb'
|
2009-11-18 01:44:53 +05:30
|
|
|
plg.name = _('Gramps 2.x database')
|
|
|
|
plg.description = _('Import data from Gramps 2.x database files')
|
2009-10-24 19:23:20 +05:30
|
|
|
plg.version = '1.0'
|
2010-03-07 04:17:25 +05:30
|
|
|
plg.gramps_target_version = '3.3'
|
2009-10-24 19:23:20 +05:30
|
|
|
plg.status = STABLE
|
|
|
|
plg.fname = 'ImportGrdb.py'
|
|
|
|
plg.ptype = IMPORT
|
|
|
|
plg.import_function = 'importData'
|
|
|
|
plg.extension = "grdb"
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Pro-Gen Files
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
plg = newplugin()
|
|
|
|
plg.id = 'im_progen'
|
|
|
|
plg.name = _('Pro-Gen')
|
|
|
|
plg.description = _('Import data from Pro-Gen files')
|
|
|
|
plg.version = '1.0'
|
2010-03-07 04:17:25 +05:30
|
|
|
plg.gramps_target_version = '3.3'
|
2009-10-24 19:23:20 +05:30
|
|
|
plg.status = STABLE
|
|
|
|
plg.fname = 'ImportProGen.py'
|
|
|
|
plg.ptype = IMPORT
|
|
|
|
plg.import_function = '_importData'
|
|
|
|
plg.extension = "def"
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# vCard
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
plg = newplugin()
|
|
|
|
plg.id = 'im_vcard'
|
|
|
|
plg.name = _('vCard')
|
|
|
|
plg.description = _('Import data from vCard files')
|
|
|
|
plg.version = '1.0'
|
2010-03-07 04:17:25 +05:30
|
|
|
plg.gramps_target_version = '3.3'
|
2009-10-24 19:23:20 +05:30
|
|
|
plg.status = STABLE
|
|
|
|
plg.fname = 'ImportVCard.py'
|
|
|
|
plg.ptype = IMPORT
|
|
|
|
plg.import_function = 'importData'
|
|
|
|
plg.extension = "vcf"
|