Better handling of sources

svn: r79
This commit is contained in:
Don Allingham
2001-06-02 22:56:04 +00:00
parent 897103ddf7
commit 91a5398932
12 changed files with 1395 additions and 842 deletions

View File

@@ -341,6 +341,16 @@ def exportData(database, filename, callback):
for person in family.getChildList():
write_ref(g,"child",person)
g.write("</childlist>\n")
if len(family.getAttributeList()) > 0:
g.write("<attributes>\n")
for attr in family.getAttributeList():
g.write('<attribute>\n')
write_line(g,"attr_type",attr.getType())
write_line(g,"attr_value",attr.getValue())
dump_source_ref(g,attr.getSourceRef())
writeNote(g,"note",attr.getNote())
g.write('</attribute>\n')
g.write('</attributes>\n')
writeNote(g,"note",family.getNote())
g.write("</family>\n")
g.write("</families>\n")