From d13e98ce19ee6206e98b365998c00785647c3d9a Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Mon, 23 Aug 2004 11:14:38 +0000 Subject: [PATCH] (XmlWriter.write_ref): Fixed typo. svn: r3482 --- gramps2/ChangeLog | 5 +++++ gramps2/src/WriteXML.py | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index b678c4360..7bf4bde8d 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,9 @@ 2004-08-23 Tim Waugh + * src/WriteXML.py (XmlWriter.write_xml_data): Use GRAMPS ID not DB + handle. + (XmlWriter.dump_source_ref): Likewise. + (XmlWriter.write_ref): Fixed typo. + * src/GrampsDbBase.py (GrampsDbBase.find_source_from_handle): Set GRAMPS ID on new source (bug #1014246). diff --git a/gramps2/src/WriteXML.py b/gramps2/src/WriteXML.py index 761cbfaeb..19ea374a8 100644 --- a/gramps2/src/WriteXML.py +++ b/gramps2/src/WriteXML.py @@ -373,7 +373,7 @@ class XmlWriter: if self.callback and count % delta == 0: self.callback(float(count)/float(total)) count = count + 1 - self.g.write(" \n") + self.g.write(" \n") self.write_force_line("stitle",source.get_title(),3) self.write_line("sauthor",source.get_author(),3) self.write_line("spubinfo",source.get_publication_info(),3) @@ -535,12 +535,12 @@ class XmlWriter: q = source_ref.get_confidence_level() self.g.write(" " * index) if p == "" and c == "" and t == "" and d.is_empty() and q == 2: - self.g.write('\n' % source.get_handle()) + self.g.write('\n' % source.get_gramps_id()) else: if q == 2: - self.g.write('\n' % source.get_handle()) + self.g.write('\n' % source.get_gramps_id()) else: - self.g.write('\n' % (source.get_handle(),q)) + self.g.write('\n' % (source.get_gramps_id(),q)) self.write_line("spage",p,index+1) self.write_text("scomments",c,index+1) self.write_text("stext",t,index+1) @@ -549,7 +549,7 @@ class XmlWriter: def write_ref(self,label,gid,index=1): if gid: - self.g.write('%s<%s ref="%s"/>\n' % (" "*index,label,id)) + self.g.write('%s<%s ref="%s"/>\n' % (" "*index,label,gid)) def write_id(self,label,person,index=1): if person: