Added missing del_func to BSDDB._tables

This commit is contained in:
Doug Blank 2016-01-08 04:34:30 -05:00
parent e85af204dd
commit cc00442e0b

View File

@ -250,6 +250,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"add_func": self.add_person, "add_func": self.add_person,
"commit_func": self.commit_person, "commit_func": self.commit_person,
"count_func": self.get_number_of_people, "count_func": self.get_number_of_people,
"del_func": self.remove_person,
}) })
self._tables['Family'].update( self._tables['Family'].update(
{ {
@ -261,6 +262,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"add_func": self.add_family, "add_func": self.add_family,
"commit_func": self.commit_family, "commit_func": self.commit_family,
"count_func": self.get_number_of_families, "count_func": self.get_number_of_families,
"del_func": self.remove_family,
}) })
self._tables['Source'].update( self._tables['Source'].update(
{ {
@ -272,6 +274,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"add_func": self.add_source, "add_func": self.add_source,
"commit_func": self.commit_source, "commit_func": self.commit_source,
"count_func": self.get_number_of_sources, "count_func": self.get_number_of_sources,
"del_func": self.remove_source,
}) })
self._tables['Citation'].update( self._tables['Citation'].update(
{ {
@ -283,6 +286,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"add_func": self.add_citation, "add_func": self.add_citation,
"commit_func": self.commit_citation, "commit_func": self.commit_citation,
"count_func": self.get_number_of_citations, "count_func": self.get_number_of_citations,
"del_func": self.remove_citation,
}) })
self._tables['Event'].update( self._tables['Event'].update(
{ {
@ -294,6 +298,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"add_func": self.add_event, "add_func": self.add_event,
"commit_func": self.commit_event, "commit_func": self.commit_event,
"count_func": self.get_number_of_events, "count_func": self.get_number_of_events,
"del_func": self.remove_event,
}) })
self._tables['Media'].update( self._tables['Media'].update(
{ {
@ -305,6 +310,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"add_func": self.add_object, "add_func": self.add_object,
"commit_func": self.commit_media_object, "commit_func": self.commit_media_object,
"count_func": self.get_number_of_media_objects, "count_func": self.get_number_of_media_objects,
"del_func": self.remove_object,
}) })
self._tables['Place'].update( self._tables['Place'].update(
{ {
@ -316,6 +322,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"add_func": self.add_place, "add_func": self.add_place,
"commit_func": self.commit_place, "commit_func": self.commit_place,
"count_func": self.get_number_of_places, "count_func": self.get_number_of_places,
"del_func": self.remove_place,
}) })
self._tables['Repository'].update( self._tables['Repository'].update(
{ {
@ -327,6 +334,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"add_func": self.add_repository, "add_func": self.add_repository,
"commit_func": self.commit_repository, "commit_func": self.commit_repository,
"count_func": self.get_number_of_repositories, "count_func": self.get_number_of_repositories,
"del_func": self.remove_repository,
}) })
self._tables['Note'].update( self._tables['Note'].update(
{ {
@ -338,6 +346,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"add_func": self.add_note, "add_func": self.add_note,
"commit_func": self.commit_note, "commit_func": self.commit_note,
"count_func": self.get_number_of_notes, "count_func": self.get_number_of_notes,
"del_func": self.remove_note,
}) })
self._tables['Tag'].update( self._tables['Tag'].update(
{ {
@ -349,6 +358,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
"add_func": self.add_tag, "add_func": self.add_tag,
"commit_func": self.commit_tag, "commit_func": self.commit_tag,
"count_func": self.get_number_of_tags, "count_func": self.get_number_of_tags,
"del_func": self.remove_tag,
}) })
self.secondary_connected = False self.secondary_connected = False