From ebcd60fa9ea997fcbf48c7c3cbb91fe5a59e2c0f Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 31 Oct 2006 16:15:21 +0000 Subject: [PATCH] 2006-10-31 Alex Roitman * src/GrampsDb/_WriteGedcom.py (write_families): Properly write custom attr type. svn: r7524 --- gramps2/ChangeLog | 4 ++++ gramps2/src/GrampsDb/_WriteGedcom.py | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index ae2355372..7d2aa8667 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-10-31 Alex Roitman + * src/GrampsDb/_WriteGedcom.py (write_families): Properly write + custom attr type. + 2006-10-30 Don Allingham * src/DataViews/_PersonView.py: prevent updates on person list if not visible (person-added) diff --git a/gramps2/src/GrampsDb/_WriteGedcom.py b/gramps2/src/GrampsDb/_WriteGedcom.py index b8b1cafaa..cab6814fb 100644 --- a/gramps2/src/GrampsDb/_WriteGedcom.py +++ b/gramps2/src/GrampsDb/_WriteGedcom.py @@ -707,11 +707,13 @@ class GedcomWriter(UpdateCallback): self.writeln("1 %s %s" % (name,value)) continue else: + the_name = str(attr.get_type()) self.writeln("1 EVEN") if value: - self.writeln("2 TYPE %s %s" %(self.cnvtxt(name),value)) + self.writeln("2 TYPE %s %s" %(self.cnvtxt(the_name), + value)) else: - self.writeln("2 TYPE %s" % self.cnvtxt(name)) + self.writeln("2 TYPE %s" % self.cnvtxt(the_name)) if attr.get_note(): self.write_long_text("NOTE",2,self.cnvtxt(attr.get_note()))