9547: Remove deprecated database methods
This commit is contained in:
parent
e7b7ba4843
commit
c7c674b8c9
@ -1490,12 +1490,6 @@ class DbWriteBase(DbReadBase):
|
|||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def add_family_event(self, event, transaction):
|
|
||||||
"""
|
|
||||||
Deprecated: Use add_event
|
|
||||||
"""
|
|
||||||
raise NotImplementedError
|
|
||||||
|
|
||||||
def add_note(self, obj, transaction, set_gid=True):
|
def add_note(self, obj, transaction, set_gid=True):
|
||||||
"""
|
"""
|
||||||
Add a Note to the database, assigning internal IDs if they have
|
Add a Note to the database, assigning internal IDs if they have
|
||||||
@ -1523,12 +1517,6 @@ class DbWriteBase(DbReadBase):
|
|||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def add_person_event(self, event, transaction):
|
|
||||||
"""
|
|
||||||
Deprecated: Use add_event
|
|
||||||
"""
|
|
||||||
raise NotImplementedError
|
|
||||||
|
|
||||||
def add_place(self, place, transaction, set_gid=True):
|
def add_place(self, place, transaction, set_gid=True):
|
||||||
"""
|
"""
|
||||||
Add a Place to the database, assigning internal IDs if they have
|
Add a Place to the database, assigning internal IDs if they have
|
||||||
@ -1596,12 +1584,6 @@ class DbWriteBase(DbReadBase):
|
|||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def commit_family_event(self, event, transaction, change_time=None):
|
|
||||||
"""
|
|
||||||
Deprecated: Use commit_event
|
|
||||||
"""
|
|
||||||
raise NotImplementedError
|
|
||||||
|
|
||||||
def commit_media(self, obj, transaction, change_time=None):
|
def commit_media(self, obj, transaction, change_time=None):
|
||||||
"""
|
"""
|
||||||
Commit the specified Media to the database, storing the changes
|
Commit the specified Media to the database, storing the changes
|
||||||
@ -1623,12 +1605,6 @@ class DbWriteBase(DbReadBase):
|
|||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def commit_personal_event(self, event, transaction, change_time=None):
|
|
||||||
"""
|
|
||||||
Deprecated: Use commit_event
|
|
||||||
"""
|
|
||||||
raise NotImplementedError
|
|
||||||
|
|
||||||
def commit_place(self, place, transaction, change_time=None):
|
def commit_place(self, place, transaction, change_time=None):
|
||||||
"""
|
"""
|
||||||
Commit the specified Place to the database, storing the changes as
|
Commit the specified Place to the database, storing the changes as
|
||||||
|
@ -1662,18 +1662,6 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
|
|||||||
self.find_next_event_gramps_id if set_gid else None,
|
self.find_next_event_gramps_id if set_gid else None,
|
||||||
self.commit_event)
|
self.commit_event)
|
||||||
|
|
||||||
def add_person_event(self, event, transaction):
|
|
||||||
"""
|
|
||||||
Deprecated: Use add_event
|
|
||||||
"""
|
|
||||||
return self.add_event(event, transaction)
|
|
||||||
|
|
||||||
def add_family_event(self, event, transaction):
|
|
||||||
"""
|
|
||||||
Deprecated: Use add_event
|
|
||||||
"""
|
|
||||||
return self.add_event(event, transaction)
|
|
||||||
|
|
||||||
def add_place(self, place, transaction, set_gid=True):
|
def add_place(self, place, transaction, set_gid=True):
|
||||||
"""
|
"""
|
||||||
Add a Place to the database, assigning internal IDs if they have
|
Add a Place to the database, assigning internal IDs if they have
|
||||||
@ -2073,18 +2061,6 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
|
|||||||
if attr.type.is_custom() and str(attr.type)]
|
if attr.type.is_custom() and str(attr.type)]
|
||||||
self.media_attributes.update(attr_list)
|
self.media_attributes.update(attr_list)
|
||||||
|
|
||||||
def commit_personal_event(self, event, transaction, change_time=None):
|
|
||||||
"""
|
|
||||||
Deprecated: Use commit_event
|
|
||||||
"""
|
|
||||||
self.commit_event(event, transaction, change_time)
|
|
||||||
|
|
||||||
def commit_family_event(self, event, transaction, change_time=None):
|
|
||||||
"""
|
|
||||||
Deprecated: Use commit_event
|
|
||||||
"""
|
|
||||||
self.commit_event(event, transaction, change_time)
|
|
||||||
|
|
||||||
def commit_event(self, event, transaction, change_time=None):
|
def commit_event(self, event, transaction, change_time=None):
|
||||||
"""
|
"""
|
||||||
Commit the specified Event to the database, storing the changes as
|
Commit the specified Event to the database, storing the changes as
|
||||||
|
Loading…
Reference in New Issue
Block a user