* src/WriteGedcom.py (write_source_ref): Write confidence level
(the QUAY tag) of the source reference into GEDCOM. svn: r5905
This commit is contained in:
parent
de81e15969
commit
cb52b7d9c6
@ -2,6 +2,8 @@
|
|||||||
* src/plugins/Leak.py (display): Catch exception coming from
|
* src/plugins/Leak.py (display): Catch exception coming from
|
||||||
trying to call __repr__ on a closed db.DB.
|
trying to call __repr__ on a closed db.DB.
|
||||||
* src/gramps.glade: Correct +/- tooltips for Data tab in Source Editor.
|
* src/gramps.glade: Correct +/- tooltips for Data tab in Source Editor.
|
||||||
|
* src/WriteGedcom.py (write_source_ref): Write confidence level
|
||||||
|
(the QUAY tag) of the source reference into GEDCOM.
|
||||||
|
|
||||||
2006-01-26 Brian Matherly <pez4brian@users.sourceforge.net>
|
2006-01-26 Brian Matherly <pez4brian@users.sourceforge.net>
|
||||||
* src/plugins/FamilyGroup.py: correctly put borders on the
|
* src/plugins/FamilyGroup.py: correctly put borders on the
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2000-2005 Donald N. Allingham
|
# Copyright (C) 2000-2006 Donald N. Allingham
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -1208,7 +1208,8 @@ class GedcomWriter:
|
|||||||
self.writeln("%d SOUR @%s@" %
|
self.writeln("%d SOUR @%s@" %
|
||||||
(level,self.sid(ref.get_base_handle())))
|
(level,self.sid(ref.get_base_handle())))
|
||||||
if ref.get_page() != "":
|
if ref.get_page() != "":
|
||||||
self.write_long_text("PAGE",level+1,self.cnvtxt(ref.get_page()))
|
self.write_long_text("PAGE",level+1,
|
||||||
|
self.cnvtxt(ref.get_page()))
|
||||||
|
|
||||||
ref_text = ref.get_text()
|
ref_text = ref.get_text()
|
||||||
if ref_text != "" or not ref.get_date_object().is_empty():
|
if ref_text != "" or not ref.get_date_object().is_empty():
|
||||||
@ -1217,6 +1218,13 @@ class GedcomWriter:
|
|||||||
self.write_long_text("TEXT",level+2,self.cnvtxt(ref_text))
|
self.write_long_text("TEXT",level+2,self.cnvtxt(ref_text))
|
||||||
pfx = "%d DATE" % (level+2)
|
pfx = "%d DATE" % (level+2)
|
||||||
self.print_date(pfx,ref.get_date_object())
|
self.print_date(pfx,ref.get_date_object())
|
||||||
|
conf = ref.get_confidence_level()
|
||||||
|
if conf != RelLib.CONF_NORMAL:
|
||||||
|
if conf > 1:
|
||||||
|
gedcom_conf = conf - 1
|
||||||
|
else:
|
||||||
|
gedcom_conf = conf
|
||||||
|
self.writeln('%d QUAY %d' % (level+1,gedcom_conf))
|
||||||
else:
|
else:
|
||||||
# We put title, page, and date on the SOUR line.
|
# We put title, page, and date on the SOUR line.
|
||||||
# Not using CONC and CONT because GeneWeb does not support these.
|
# Not using CONC and CONT because GeneWeb does not support these.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user