diff --git a/ChangeLog b/ChangeLog index 91bbe5923..2413cdfa2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ 2004-08-23 Alex Roitman * src/EdirPerson.py (__init__): Typos. * src/ArgHandler.py (auto_save_load): Remove new db creation for BSDDB. + * src/GrampsDbBase.py (get_object_from_gramps_id, + get_source_from_gramps_id, get_place_from_gramps_id): Add placeholder + functions with assertions. 2004-08-23 Jim Smart * src/PeopleModel.py: enhanced column_spouse diff --git a/src/GrampsDbBase.py b/src/GrampsDbBase.py index 10ab62ba9..0ae0b84cc 100644 --- a/src/GrampsDbBase.py +++ b/src/GrampsDbBase.py @@ -450,6 +450,30 @@ class GrampsDbBase: """ assert(False,"Needs to be overridden in the derived class") + def get_place_from_gramps_id(self,val): + """finds a Place in the database from the passed gramps' ID. + If no such Place exists, a new Person is added to the database. + + Needs to be overridden by the derrived class. + """ + assert(False,"Needs to be overridden in the derived class") + + def get_source_from_gramps_id(self,val): + """finds a Source in the database from the passed gramps' ID. + If no such Source exists, a new Person is added to the database. + + Needs to be overridden by the derrived class. + """ + assert(False,"Needs to be overridden in the derived class") + + def get_object_from_gramps_id(self,val): + """finds a MediaObject in the database from the passed gramps' ID. + If no such MediaObject exists, a new Person is added to the database. + + Needs to be overridden by the derrived class. + """ + assert(False,"Needs to be overridden in the derived class") + def add_person(self,person,transaction): """ Adds a Person to the database, assigning internal IDs if they have