* src/gen/db/dbdir.py: rebuild ref map correctly, bug #1421

2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9466
This commit is contained in:
Benny Malengier 2007-12-09 15:56:01 +00:00
parent 9f04eaad48
commit c4bf352d49
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>
* src/gen/db/dbdir.py: rebuild ref map correctly, bug #1421
2007-12-09 Benny Malengier <benny.malengier@gramps-project.org>
Add support for name grouping import/export
* src/GrampsDb/_GrampsDbWriteXML.py: write group table out

View File

@ -1047,7 +1047,6 @@ class GrampsDBDir(GrampsDbBase, UpdateCallback):
"""
Reindex all primary records in the database.
This will be a slow process for large databases.
"""
# First, remove the reference map and related tables
@ -1067,8 +1066,8 @@ class GrampsDBDir(GrampsDbBase, UpdateCallback):
callback(3)
# Open reference_map and primapry map
self.reference_map = self.__open_table(
_mkname(self.full_name, REF_MAP), REF_MAP, dbtype=db.DB_BTREE)
self.reference_map = self.__open_table(self.full_name, REF_MAP,
dbtype=db.DB_BTREE)
open_flags = self.__open_flags()
self.reference_map_primary_map = db.DB(self.env)