* src/gen/db/GrampsDbUtils/_Backup.py: use gen.db

2007-10-07  Don Allingham  <don@gramps-project.org>


svn: r9093
This commit is contained in:
Don Allingham 2007-10-07 17:00:55 +00:00
parent 9083803e21
commit 08c63b2e45
2 changed files with 14 additions and 10 deletions

View File

@ -1,3 +1,6 @@
2007-10-07 Don Allingham <don@gramps-project.org>
* src/gen/db/GrampsDbUtils/_Backup.py: use gen.db
2007-10-07 Don Allingham <don@gramps-project.org> 2007-10-07 Don Allingham <don@gramps-project.org>
* src/gen/db/__init__.py: commit * src/gen/db/__init__.py: commit

View File

@ -58,6 +58,8 @@ from gettext import gettext as _
# #
#------------------------------------------------------------------------ #------------------------------------------------------------------------
from QuestionDialog import ErrorDialog from QuestionDialog import ErrorDialog
from gen.db.dbdir import FAMILY_TBL, PLACES_TBL, SOURCES_TBL, MEDIA_TBL, \
EVENTS_TBL, PERSON_TBL, REPO_TBL, NOTE_TBL, META
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #
@ -66,7 +68,6 @@ from QuestionDialog import ErrorDialog
#------------------------------------------------------------------------ #------------------------------------------------------------------------
import logging import logging
import os import os
from gen.db.dbdir import GrampsDBDir
import cPickle as pickle import cPickle as pickle
LOG = logging.getLogger(".Backup") LOG = logging.getLogger(".Backup")
@ -219,13 +220,13 @@ def __build_tbl_map(database):
@type database: GrampsDbDir @type database: GrampsDbDir
""" """
return [ return [
( GrampsDBDir.PERSON_TBL, database.person_map.db), ( PERSON_TBL, database.person_map.db),
( GrampsDBDir.FAMILY_TBL, database.family_map.db), ( FAMILY_TBL, database.family_map.db),
( GrampsDBDir.PLACES_TBL, database.place_map.db), ( PLACES_TBL, database.place_map.db),
( GrampsDBDir.SOURCES_TBL, database.source_map.db), ( SOURCES_TBL, database.source_map.db),
( GrampsDBDir.REPO_TBL, database.repository_map.db), ( REPO_TBL, database.repository_map.db),
( GrampsDBDir.NOTE_TBL, database.note_map.db), ( NOTE_TBL, database.note_map.db),
( GrampsDBDir.MEDIA_TBL, database.media_map.db), ( MEDIA_TBL, database.media_map.db),
( GrampsDBDir.EVENTS_TBL, database.event_map.db), ( EVENTS_TBL, database.event_map.db),
( GrampsDBDir.META, database.metadata.db), ( META, database.metadata.db),
] ]