Add round trip Ancestry.com _APID tag support

Implements #9925
This commit is contained in:
Christopher Horn
2021-05-28 20:41:22 -04:00
committed by Nick Hall
parent 3b59aa3a44
commit dfe221d48e
2 changed files with 25 additions and 0 deletions

View File

@@ -999,6 +999,11 @@ class GedcomWriter(UpdateCallback):
self._note_references(source.get_note_list(), 1)
self._change(source.get_change_time(), 1)
for srcattr in source.get_attribute_list():
if str(srcattr.type) == "_APID":
self._writeln(1, "_APID", srcattr.value)
break
def _notes(self):
"""
Write out the list of notes, sorting by Gramps ID.
@@ -1408,6 +1413,11 @@ class GedcomWriter(UpdateCallback):
self._writeln(level + 2, "ROLE", srcattr.value)
break
for srcattr in citation.get_attribute_list():
if str(srcattr.type) == "_APID":
self._writeln(level + 1, "_APID", srcattr.value)
break
def _photo(self, photo, level):
"""
n OBJE @<XREF:OBJE>@ {1:1}