* src/GrampsDb/_GrampsBSDDB.py: disable TXN for readonly dbs

svn: r7028
This commit is contained in:
Don Allingham 2006-07-15 05:14:39 +00:00
parent 0b3c635f89
commit 913d4f4772
2 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,5 @@
2006-07-14 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py: disable TXN for readonly dbs
* src/DbLoader.py (DbLoader.read_file): handle DBAccessError
2006-07-12 Brian Matherly <brian@gramps-project.org>

View File

@ -288,6 +288,8 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback):
self.close()
self.readonly = mode == "r"
if self.readonly:
self.UseTXN = False
callback(12)