2007-06-13 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsDBDir.py (open_undodb): Override the base method by using undo.db inside the data directory. svn: r8549
This commit is contained in:
parent
9b8759a25b
commit
012374cff5
@ -1,3 +1,7 @@
|
||||
2007-06-13 Alex Roitman <shura@gramps-project.org>
|
||||
* src/GrampsDb/_GrampsDBDir.py (open_undodb): Override the base
|
||||
method by using undo.db inside the data directory.
|
||||
|
||||
2007-06-13 Don Allingham <don@gramps-project.org>
|
||||
* src/GrampsDbUtils/_Backup.py (__do_export): check for existance before deleting
|
||||
|
||||
|
@ -561,6 +561,16 @@ class GrampsDBDir(GrampsDbBase,UpdateCallback):
|
||||
|
||||
return 1
|
||||
|
||||
def open_undodb(self):
|
||||
"""
|
||||
Override method from GrampsDbBase because in DIR setup we want
|
||||
the undo database to be inside the dir.
|
||||
"""
|
||||
if not self.readonly:
|
||||
self.undolog = os.path.join(self.full_name, "undo.db")
|
||||
self.undodb = db.DB()
|
||||
self.undodb.open(self.undolog, db.DB_RECNO, db.DB_CREATE)
|
||||
|
||||
def load_from(self, other_database, filename, callback):
|
||||
try:
|
||||
self.load(filename,callback)
|
||||
|
Loading…
Reference in New Issue
Block a user