* src/GrampsDb/_GrampsBSDDB.py (_find_from_handle): Revert the

change, as it does not seem to bring any speedup.


svn: r5862
This commit is contained in:
Alex Roitman 2006-02-01 19:11:25 +00:00
parent c867ab1937
commit 006d2995a2
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-02-01 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py (_find_from_handle): Revert the
change, as it does not seem to bring any speedup.
2006-01-31 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsDbBase.py (find_next_*_gramps_id): check
whether the key exists, do not read.

View File

@ -960,7 +960,7 @@ class GrampsBSDDB(GrampsDbBase):
def _find_from_handle(self,handle,transaction,class_type,dmap,add_func):
obj = class_type()
handle = str(handle)
if dmap.db.has_key(handle):
if dmap.has_key(handle):
data = dmap.get(handle,txn=self.txn)
obj.unserialize(data)
else: