Remove redundant table maps

This commit is contained in:
Nick Hall 2016-10-17 19:36:23 +01:00
parent a3718e23ab
commit d1e3280821

View File

@ -670,50 +670,14 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
self.rmap_index = 0
self.nmap_index = 0
self.person_map = Map(Table(self, "Person"))
self.person_id_map = Map(Table(self, "Person"),
keys_func="ids_func",
contains_func="has_gramps_id_func",
raw_func="raw_id_func")
self.family_map = Map(Table(self, "Family"))
self.family_id_map = Map(Table(self, "Family"),
keys_func="ids_func",
contains_func="has_gramps_id_func",
raw_func="raw_id_func")
self.place_map = Map(Table(self, "Place"))
self.place_id_map = Map(Table(self, "Place"),
keys_func="ids_func",
contains_func="has_gramps_id_func",
raw_func="raw_id_func")
self.citation_map = Map(Table(self, "Citation"))
self.citation_id_map = Map(Table(self, "Citation"),
keys_func="ids_func",
contains_func="has_gramps_id_func",
raw_func="raw_id_func")
self.source_map = Map(Table(self, "Source"))
self.source_id_map = Map(Table(self, "Source"),
keys_func="ids_func",
contains_func="has_gramps_id_func",
raw_func="raw_id_func")
self.repository_map = Map(Table(self, "Repository"))
self.repository_id_map = Map(Table(self, "Repository"),
keys_func="ids_func",
contains_func="has_gramps_id_func",
raw_func="raw_id_func")
self.note_map = Map(Table(self, "Note"))
self.note_id_map = Map(Table(self, "Note"),
keys_func="ids_func",
contains_func="has_gramps_id_func",
raw_func="raw_id_func")
self.media_map = Map(Table(self, "Media"))
self.media_id_map = Map(Table(self, "Media"),
keys_func="ids_func",
contains_func="has_gramps_id_func",
raw_func="raw_id_func")
self.event_map = Map(Table(self, "Event"))
self.event_id_map = Map(Table(self, "Event"),
keys_func="ids_func",
contains_func="has_gramps_id_func",
raw_func="raw_id_func")
self.tag_map = Map(Table(self, "Tag"))
self.metadata = Map(Table(self, "Metadata", funcs={"cursor_func": lambda: MetaCursor()}))
self.undo_callback = None