Revert 10874 changes to dbdir.py and _GrampsBSDDB.py

svn: r10875
This commit is contained in:
Gerald Britton 2008-07-17 21:03:26 +00:00
parent 882199f1c2
commit 49316e07e8
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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