Revert 10874 changes to dbdir.py and _GrampsBSDDB.py
svn: r10875
This commit is contained in:
parent
882199f1c2
commit
49316e07e8
@ -1330,7 +1330,8 @@ class GrampsBSDDB(GrampsDbBase, UpdateCallback):
|
||||
pass
|
||||
|
||||
def __get_obj_from_gramps_id(self, val, tbl, class_init, prim_tbl):
|
||||
if str(val) in tbl:
|
||||
if tbl.has_key(str(val)):
|
||||
#if str(val) in tbl:
|
||||
data = tbl.get(str(val), txn=self.txn)
|
||||
obj = class_init()
|
||||
### FIXME: this is a dirty hack that works without no
|
||||
|
@ -1373,7 +1373,8 @@ class GrampsDBDir(GrampsDbBase, UpdateCallback):
|
||||
|
||||
def __get_obj_from_gramps_id(self, val, tbl, class_init, prim_tbl):
|
||||
try:
|
||||
if str(val) in tbl:
|
||||
if tbl.has_key(str(val)):
|
||||
#if str(val) in tbl:
|
||||
data = tbl.get(str(val), txn=self.txn)
|
||||
obj = class_init()
|
||||
### FIXME: this is a dirty hack that works without no
|
||||
|
Loading…
Reference in New Issue
Block a user