* src/GrampsDb/_GrampsDbBase.py: Set batch transaction property in

the constructor.
* src/GrampsDb/_GrampsBSDDB.py: Back to durable transactions, set
TXN_NOSYNC flag only on batch transactions.


svn: r5781
This commit is contained in:
Alex Roitman
2006-01-17 21:17:14 +00:00
parent 90247368d9
commit 046b55b81e
3 changed files with 30 additions and 25 deletions

View File

@@ -1753,7 +1753,7 @@ class Transaction:
Defines a group of database commits that define a single logical
operation.
"""
def __init__(self,msg,db):
def __init__(self,msg,db,batch=False):
"""
Creates a new transaction. A Transaction instance should not be created
directly, but by the GrampsDbBase class or classes derived from
@@ -1764,7 +1764,7 @@ class Transaction:
self.db = db
self.first = None
self.last = None
self.batch = False
self.batch = batch
self.length = 0
self.person_add = []