4354: Bug fix in unused methods

svn: r16151
This commit is contained in:
Nick Hall 2010-11-06 16:03:09 +00:00
parent 5bc355ad0c
commit 03d5e3f4bc

View File

@ -628,56 +628,56 @@ class ProxyDbBase(DbReadBase):
Returns True if the handle exists in the current Person database. Returns True if the handle exists in the current Person database.
""" """
return self.gfilter(self.include_person, 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): def has_family_handle(self, handle):
""" """
Returns True if the handle exists in the current Family database. Returns True if the handle exists in the current Family database.
""" """
return self.gfilter(self.include_family, 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): def has_event_handle(self, handle):
""" """
returns True if the handle exists in the current Event database. returns True if the handle exists in the current Event database.
""" """
return self.gfilter(self.include_event, 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): def has_source_handle(self, handle):
""" """
returns True if the handle exists in the current Source database. returns True if the handle exists in the current Source database.
""" """
return self.gfilter(self.include_source, 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): def has_place_handle(self, handle):
""" """
returns True if the handle exists in the current Place database. returns True if the handle exists in the current Place database.
""" """
return self.gfilter(self.include_place, 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): def has_object_handle(self, handle):
""" """
returns True if the handle exists in the current MediaObjectdatabase. returns True if the handle exists in the current MediaObjectdatabase.
""" """
return self.gfilter(self.include_media_object, 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): def has_repository_handle(self, handle):
""" """
returns True if the handle exists in the current Repository database. returns True if the handle exists in the current Repository database.
""" """
return self.gfilter(self.include_repository, 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): def has_note_handle(self, handle):
""" """
returns True if the handle exists in the current Note database. returns True if the handle exists in the current Note database.
""" """
return self.gfilter(self.include_note, 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 get_mediapath(self): def get_mediapath(self):
"""returns the default media path of the database""" """returns the default media path of the database"""