From e76143f428bd33f962216c21d59eedf87212f513 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 16 Jun 2006 18:38:06 +0000 Subject: [PATCH] * src/GrampsDb/_WriteGedcom.py: export QUAY svn: r6901 --- gramps2/ChangeLog | 1 + gramps2/src/GrampsDb/_WriteGedcom.py | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index d2e6a0f1e..b9f8be34e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -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 * src/GrampsDb/_GrampsDbBase.py: prevent null event types and diff --git a/gramps2/src/GrampsDb/_WriteGedcom.py b/gramps2/src/GrampsDb/_WriteGedcom.py index 94884ff0b..ace726d10 100644 --- a/gramps2/src/GrampsDb/_WriteGedcom.py +++ b/gramps2/src/GrampsDb/_WriteGedcom.py @@ -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))