(XmlWriter.write_xml_data): Fixed people output by preventing

confusion between handles and GRAMPS IDs.


svn: r3471
This commit is contained in:
Tim Waugh 2004-08-22 12:37:44 +00:00
parent 89ca5db49f
commit 243aacca4f
2 changed files with 7 additions and 3 deletions

View File

@ -2,6 +2,8 @@
* src/WriteXML.py (write_xml_data): Fixed typo causing XML export to
omit all place definitions.
(XmlWriter.write_xml_data): Sort person handles before writing.
(XmlWriter.write_xml_data): Fixed people output by preventing
confusion between handles and GRAMPS IDs.
* src/RelLib.py (probably_alive): Fixed typo (bug #1012347).

View File

@ -307,11 +307,13 @@ class XmlWriter:
frel=' frel="%s"' % alt[2]
else:
frel=''
parent_family = self.db.get_family_from_handle (alt[0])
self.g.write(" <childof ref=\"%s\"%s%s/>\n" % \
(alt[0], mrel, frel))
(parent_family.get_gramps_id (), mrel, frel))
for family in person.get_family_handle_list():
self.write_ref("parentin",family,3)
for family_handle in person.get_family_handle_list():
family = self.db.get_family_from_handle (family_handle)
self.write_ref("parentin",family.get_gramps_id (),3)
self.write_note("note",person.get_note_object(),3)
for s in person.get_source_references():