* src/GrampsDb/_WriteGedcom.py: export QUAY

svn: r6901
This commit is contained in:
Don Allingham 2006-06-16 18:38:06 +00:00
parent a49d39d698
commit e76143f428
2 changed files with 14 additions and 1 deletions

View File

@ -3,6 +3,7 @@
to EditFamily windows. This prevents the EditPerson window from
trying to trying to access a non-existent window and causing a
segfault
* src/GrampsDb/_WriteGedcom.py: export QUAY
2006-06-15 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsDbBase.py: prevent null event types and

View File

@ -154,6 +154,14 @@ mime2ged = {
"image/tiff" : "tiff",
"audio/x-wav" : "wav"
}
quay_map = {
RelLib.SourceRef.CONF_VERY_HIGH : 3,
RelLib.SourceRef.CONF_HIGH : 2,
RelLib.SourceRef.CONF_LOW : 1,
RelLib.SourceRef.CONF_VERY_LOW : 0,
}
#-------------------------------------------------------------------------
#
#
@ -1334,7 +1342,11 @@ class GedcomWriter(UpdateCallback):
if ref.get_page() != "":
self.write_long_text("PAGE",level+1,
self.cnvtxt(ref.get_page()))
conf = ref.get_confidence_level()
if conf != RelLib.SourceRef.CONF_NORMAL:
self.write_long_text("QUAY",level+1, str(quay_map[conf]))
ref_text = ref.get_text()
if ref_text != "" or not ref.get_date_object().is_empty():
self.writeln('%d DATA' % (level+1))