From 736b0577069e9b81dc48ad122cf9104e4eed4ea8 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 13 Oct 2016 21:36:04 +0100 Subject: [PATCH] 9745: Remove name columns from the family table The same information can be obtained using a join to the person table. --- gramps/gen/lib/family.py | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/gramps/gen/lib/family.py b/gramps/gen/lib/family.py index afc45a152..2ee59a0fd 100644 --- a/gramps/gen/lib/family.py +++ b/gramps/gen/lib/family.py @@ -244,41 +244,6 @@ class Family(CitationBase, NoteBase, MediaBase, AttributeBase, LdsOrdBase, "private": _("Private"), } - @classmethod - def field_aliases(cls): - """ - Return dictionary of alias to full field names - for this object class. - """ - return { - "mother_surname": "mother_handle.primary_name.surname_list.0.surname", - "mother_given": "mother_handle.primary_name.first_name", - "father_surname": "father_handle.primary_name.surname_list.0.surname", - "father_given": "father_handle.primary_name.first_name", - } - - @classmethod - def get_extra_secondary_fields(cls): - """ - Return a list of full field names and types for secondary - fields that are not directly listed in the schema. - """ - return [ - ("father_handle.primary_name.surname_list.0.surname", str), - ("father_handle.primary_name.first_name", str), - ("mother_handle.primary_name.surname_list.0.surname", str), - ("mother_handle.primary_name.first_name", str), - ] - - @classmethod - def get_index_fields(cls): - return [ - "father_handle.primary_name.surname_list.0.surname", - "father_handle.primary_name.first_name", - "mother_handle.primary_name.surname_list.0.surname", - "mother_handle.primary_name.first_name", - ] - def unserialize(self, data): """ Convert the data held in a tuple created by the serialize method