From 006d2995a262edd46163b975ef6b61a130c3f757 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 1 Feb 2006 19:11:25 +0000 Subject: [PATCH] * src/GrampsDb/_GrampsBSDDB.py (_find_from_handle): Revert the change, as it does not seem to bring any speedup. svn: r5862 --- gramps2/ChangeLog | 4 ++++ gramps2/src/GrampsDb/_GrampsBSDDB.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index df0d4fff0..5c682ca6d 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-02-01 Alex Roitman + * src/GrampsDb/_GrampsBSDDB.py (_find_from_handle): Revert the + change, as it does not seem to bring any speedup. + 2006-01-31 Alex Roitman * src/GrampsDb/_GrampsDbBase.py (find_next_*_gramps_id): check whether the key exists, do not read. diff --git a/gramps2/src/GrampsDb/_GrampsBSDDB.py b/gramps2/src/GrampsDb/_GrampsBSDDB.py index 43ac7f43e..17aab0334 100644 --- a/gramps2/src/GrampsDb/_GrampsBSDDB.py +++ b/gramps2/src/GrampsDb/_GrampsBSDDB.py @@ -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: