From 2ec73c785c7a39ca73b767a96248c5ea4dac6e0b Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Mon, 4 Oct 2010 20:54:58 +0000 Subject: [PATCH] Fix bug in has__handle methods svn: r15954 --- src/gen/proxy/proxybase.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gen/proxy/proxybase.py b/src/gen/proxy/proxybase.py index e1eec4af4..7a11c3149 100644 --- a/src/gen/proxy/proxybase.py +++ b/src/gen/proxy/proxybase.py @@ -679,56 +679,56 @@ class ProxyDbBase(DbReadBase): Returns True if the handle exists in the current Person database. """ return self.gfilter(self.include_person, - self.db.get_person_from_gramps_id(val)) is not None + self.db.get_person_from_handle(handle)) is not None def has_family_handle(self, handle): """ Returns True if the handle exists in the current Family database. """ return self.gfilter(self.include_family, - self.db.get_family_from_gramps_id(val)) is not None + self.db.get_family_from_handle(handle)) is not None def has_event_handle(self, handle): """ returns True if the handle exists in the current Event database. """ return self.gfilter(self.include_event, - self.db.get_event_from_gramps_id(val)) is not None + self.db.get_event_from_handle(handle)) is not None def has_source_handle(self, handle): """ returns True if the handle exists in the current Source database. """ return self.gfilter(self.include_source, - self.db.get_source_from_gramps_id(val)) is not None + self.db.get_source_from_handle(handle)) is not None def has_place_handle(self, handle): """ returns True if the handle exists in the current Place database. """ return self.gfilter(self.include_place, - self.db.get_place_from_gramps_id(val)) is not None + self.db.get_place_from_handle(handle)) is not None def has_object_handle(self, handle): """ returns True if the handle exists in the current MediaObjectdatabase. """ return self.gfilter(self.include_media_object, - self.db.get_object_from_gramps_id(val)) is not None + self.db.get_object_from_handle(handle)) is not None def has_repository_handle(self, handle): """ returns True if the handle exists in the current Repository database. """ return self.gfilter(self.include_repository, - self.db.get_repository_from_gramps_id(val)) is not None + self.db.get_repository_from_handle(handle)) is not None def has_note_handle(self, handle): """ returns True if the handle exists in the current Note database. """ return self.gfilter(self.include_note, - self.db.get_note_from_gramps_id(val)) is not None + self.db.get_note_from_handle(handle)) is not None def has_tag_handle(self, handle): """