gramps/src/GrampsDb/__init__.py
Don Allingham 04884cd19c 2007-08-25 Don Allingham <don@gramps-project.org>
* src/GrampsDb/__init__.py: Add DbBase
	* src/GrampsDb/_DbBase.py: Abstract base class for template
	* src/GrampsDb/Makefile.am: Add _DbBase.py
	* src/GrampsDbUtils/_PrivateProxyDb.py: Derive from ProxyDbBase
	* src/GrampsDbUtils/_ProxyDbBase.py: Provide base ProxyDbBase for proxy dbs
	* src/GrampsDbUtils/Makefile.am: Add _ProxyDbBase



svn: r8869
2007-08-26 04:06:37 +00:00

63 lines
2.0 KiB
Python

#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2004-2006 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
#
# $Id$
"""
This package implements the GrampsDb database. It provides a number
of different backends for different storage mechanisms.
A number of importers and exporters are provided to convert between
the different backend formats.
To obtain a class that implements the backend required you should use the
gramps_db_factory method, likewise for writers use the gramps_db_writer_factory
method and for readers use the gramps_db_reader_factory method. For information
on using these factories see the _GrampsDbFactories.py file comments.
The package also contains GrampsDBCallback which provides signal/slot type
functionality to allow objects to hook into signals that are generated from
the database objects. Read the comments in _GrampsDBCallback.py for more
information.
"""
from _GrampsDbBase import GrampsDbBase
from _GrampsDbFactories import \
gramps_db_factory
from _GrampsDbExceptions import *
from _GrampsDBCallback import GrampsDBCallback
from _DbUtils import *
import _GrampsDbConst as GrampsDbConst
from _GrampsDbWriteXML import GrampsDbXmlWriter, \
exportData, quick_write
from _LongOpStatus import LongOpStatus
from _ProgressMonitor import ProgressMonitor
from _HelperFunctions import *
from _DbBase import DbBase