* src/GrampsDbBase.py (get_object_from_gramps_id,
get_source_from_gramps_id, get_place_from_gramps_id): Add placeholder functions with assertions. svn: r3503
This commit is contained in:
parent
f596ef108a
commit
0929184cad
@ -1,6 +1,9 @@
|
|||||||
2004-08-23 Alex Roitman <shura@alex.neuro.umn.edu>
|
2004-08-23 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
* src/EdirPerson.py (__init__): Typos.
|
* src/EdirPerson.py (__init__): Typos.
|
||||||
* src/ArgHandler.py (auto_save_load): Remove new db creation for BSDDB.
|
* 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 <jim@jimsmart.org>
|
2004-08-23 Jim Smart <jim@jimsmart.org>
|
||||||
* src/PeopleModel.py: enhanced column_spouse
|
* src/PeopleModel.py: enhanced column_spouse
|
||||||
|
@ -450,6 +450,30 @@ class GrampsDbBase:
|
|||||||
"""
|
"""
|
||||||
assert(False,"Needs to be overridden in the derived class")
|
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):
|
def add_person(self,person,transaction):
|
||||||
"""
|
"""
|
||||||
Adds a Person to the database, assigning internal IDs if they have
|
Adds a Person to the database, assigning internal IDs if they have
|
||||||
|
Loading…
Reference in New Issue
Block a user