Remove unused methods

svn: r13159
This commit is contained in:
Gerald Britton
2009-09-04 17:57:00 +00:00
parent 20bfbc8719
commit 06458ae1d7
2 changed files with 7 additions and 334 deletions

View File

@ -428,187 +428,6 @@ class GrampsDbBase(object):
"""
raise NotImplementedError
def find_from_handle(self, handle, transaction, class_type, dmap,
add_func):
"""
Find a object of class_type in the database from the passed handle.
If no object exists, a new object is added to the database.
:returns: Returns a tuple, first the object, second a bool which is True
if the object is new
"""
raise NotImplementedError
def find_person_from_handle(self, handle, transaction):
"""
Find a Person in the database from the passed handle.
If no such Person exists, a new Person is added to the database.
:returns: Returns a tuple, first the object, second a bool which is True
if the object is new
"""
raise NotImplementedError
def find_source_from_handle(self, handle, transaction):
"""
Find a Source in the database from the passed handle.
If no such Source exists, a new Source is added to the database.
:returns: Returns a tuple, first the object, second a bool which is True
if the object is new
"""
raise NotImplementedError
def find_event_from_handle(self, handle, transaction):
"""
Find a Event in the database from the passed handle.
If no such Event exists, a new Event is added to the database.
:returns: Returns a tuple, first the object, second a bool which is True
if the object is new
"""
raise NotImplementedError
def find_object_from_handle(self, handle, transaction):
"""
Find a MediaObject in the database from the passed handle.
If no such MediaObject exists, a new Object is added to the database.
:returns: Returns a tuple, first the object, second a bool which is True
if the object is new
"""
raise NotImplementedError
def find_place_from_handle(self, handle, transaction):
"""
Find a Place in the database from the passed handle.
If no such Place exists, a new Place is added to the database.
:returns: Returns a tuple, first the object, second a bool which is True
if the object is new
"""
raise NotImplementedError
def find_family_from_handle(self, handle, transaction):
"""
Find a Family in the database from the passed handle.
If no such Family exists, a new Family is added to the database.
:returns: Returns a tuple, first the object, second a bool which is True
if the object is new
"""
raise NotImplementedError
def find_repository_from_handle(self, handle, transaction):
"""
Find a Repository in the database from the passed handle.
If no such Repository exists, a new Repository is added to the database.
:returns: Returns a tuple, first the object, second a bool which is True
if the object is new
"""
raise NotImplementedError
def find_note_from_handle(self, handle, transaction):
"""
Find a Note in the database from the passed handle.
If no such Note exists, a new Note is added to the database.
:returns: Returns a tuple, first the object, second a bool which is True
if the object is new
"""
raise NotImplementedError
def check_person_from_handle(self, handle, transaction, set_gid=True):
"""
Check whether a Person with the passed handle exists in the database.
If no such Person exists, a new Person is added to the database.
If set_gid then a new gramps_id is created, if not, None is used.
"""
raise NotImplementedError
def check_source_from_handle(self, handle, transaction, set_gid=True):
"""
Check whether a Source with the passed handle exists in the database.
If no such Source exists, a new Source is added to the database.
If set_gid then a new gramps_id is created, if not, None is used.
"""
raise NotImplementedError
def check_event_from_handle(self, handle, transaction, set_gid=True):
"""
Check whether an Event with the passed handle exists in the database.
If no such Event exists, a new Event is added to the database.
If set_gid then a new gramps_id is created, if not, None is used.
"""
raise NotImplementedError
def check_object_from_handle(self, handle, transaction, set_gid=True):
"""
Check whether a MediaObject with the passed handle exists in the
database.
If no such MediaObject exists, a new Object is added to the database.
If set_gid then a new gramps_id is created, if not, None is used.
"""
raise NotImplementedError
def check_place_from_handle(self, handle, transaction, set_gid=True):
"""
Check whether a Place with the passed handle exists in the database.
If no such Place exists, a new Place is added to the database.
If set_gid then a new gramps_id is created, if not, None is used.
"""
raise NotImplementedError
def check_family_from_handle(self, handle, transaction, set_gid=True):
"""
Check whether a Family with the passed handle exists in the database.
If no such Family exists, a new Family is added to the database.
If set_gid then a new gramps_id is created, if not, None is used.
"""
raise NotImplementedError
def check_repository_from_handle(self, handle, transaction, set_gid=True):
"""
Check whether a Repository with the passed handle exists in the
database.
If no such Repository exists, a new Repository is added to the database.
If set_gid then a new gramps_id is created, if not, None is used.
"""
raise NotImplementedError
def check_note_from_handle(self, handle, transaction, set_gid=True):
"""
Check whether a Note with the passed handle exists in the database.
If no such Note exists, a new Note is added to the database.
If set_gid then a new gramps_id is created, if not, None is used.
"""
raise NotImplementedError
def get_person_from_gramps_id(self, val):
"""
Find a Person in the database from the passed GRAMPS ID.