* src/GrampsDb/_WriteGedcom.py (write_source_ref): Cap confidence.

svn: r7434
This commit is contained in:
Alex Roitman 2006-10-24 19:30:24 +00:00
parent 80527732df
commit cf5b2cbe47
2 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
2006-10-24 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py (parse_source_eference): Cap
confidence value.
* src/GrampsDb/_WriteGedcom.py (write_source_ref): Cap confidence.
2006-10-23 Alex Roitman <shura@gramps-project.org>
* configure.in: Bump up release number.

View File

@ -1389,6 +1389,8 @@ class GedcomWriter(UpdateCallback):
self.cnvtxt(ref.get_page()))
conf = ref.get_confidence_level()
# Cap the maximum level
conf = min(conf,RelLib.SourceRef.CONF_VERY_HIGH)
if conf != RelLib.SourceRef.CONF_NORMAL:
self.write_long_text("QUAY",level+1, str(quay_map[conf]))