#3194: fix to write gedcom output in GRAMPS order, and fix to have children in GEDCOM FAM order

svn: r13304
This commit is contained in:
Doug Blank
2009-10-04 21:38:52 +00:00
parent 09497d5576
commit e8c72f766e
2 changed files with 15 additions and 7 deletions

View File

@ -846,16 +846,10 @@ class GedcomWriter(BasicUtils.UpdateCallback):
def __family_child_list(self, child_ref_list):
"""
Write the child XREF values to the GEDCOM file.
Sorts the child list by ID value before writing.
"""
# sort the childlist by GRAMPS ID
child_list = [
self.dbase.get_person_from_handle(cref.ref).get_gramps_id()
for cref in child_ref_list ]
child_list.sort()
for gid in child_list:
self.__writeln(1, 'CHIL', '@%s@' % gid)