7125/7102: fix with DTD change as OKed by NickH

impex.sh test currently broken until the new DTD/schema go online

svn: r23347
This commit is contained in:
Vassilii Khachaturov
2013-10-20 12:57:22 +00:00
parent 012bd1501e
commit 499dae6a2d
4 changed files with 12 additions and 10 deletions

View File

@@ -1933,7 +1933,9 @@ class GrampsParser(UpdateCallback):
self.citation)
self.citation.private = bool(attrs.get("priv"))
self.citation.change = int(attrs.get('change', self.change))
self.citation.confidence = self.conf # default
self.citation.confidence = (
self.conf if self.__xml_version >= '1.5.1'
else 0 ) # See bug# 7125
self.info.add('new-object', CITATION_KEY, self.citation)
return self.citation

View File

@@ -35,5 +35,5 @@
# Public Constants
#
#------------------------------------------------------------------------
GRAMPS_XML_VERSION = "1.5.0"
GRAMPS_XML_VERSION = "1.5.1"