DbTxn: pass db to generic DbTxn

This commit is contained in:
Doug Blank 2015-08-22 20:17:24 -04:00
parent ecc078b891
commit 8e89ceb395

View File

@ -385,7 +385,7 @@ class Bookmarks(object):
class DbGenericTxn(DbTxn):
def __init__(self, message, db, batch=False):
def __init__(self, message, batch=False):
DbTxn.__init__(self, message, db, batch)
def get(self, key, default=None, txn=None, **kwargs):
@ -1488,7 +1488,7 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
kwargs may contain:
no_magic
"""
return DbGenericTxn(message, batch)
return DbGenericTxn(message, self, batch)
def get_from_name_and_handle(self, table_name, handle):
"""