From 33414b0c78e7aad56eb3f9b5afee9807b0af84fa Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sun, 28 Feb 2010 16:17:54 +0000 Subject: [PATCH] Improve GEDCOM round trip by parsing SOUR and NOTE tokens for FACT attributes. Gramps was previously exporting this data but ignoring it on import. svn: r14522 --- src/plugins/lib/libgedcom.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index 43df56c6e..41fad7ecd 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -1905,6 +1905,9 @@ class GedcomParser(UpdateCallback): self.person_fact_parse_tbl = { TOKEN_TYPE : self.__person_fact_type, + TOKEN_SOUR : self.__person_attr_source, + TOKEN_NOTE : self.__person_attr_note, + TOKEN_RNOTE : self.__person_attr_note, } self.person_attr_parse_tbl = { @@ -3247,7 +3250,6 @@ class GedcomParser(UpdateCallback): def __person_fact_type(self, line, state): state.attr.set_type(line.data) - self.__skip_subordinate_levels(state.level) def __person_bapl(self, line, state): """