From 91ed326d7afd34a6904b3fb3f33a3dfb42c817fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20S=C3=A1nchez?= Date: Mon, 10 Oct 2005 07:56:18 +0000 Subject: [PATCH] * src/WriteGedcom.py: fixed error caused by incomplete migration to handle-based storage API svn: r5298 --- gramps2/ChangeLog | 4 ++++ gramps2/src/WriteGedcom.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index bf1c15f18..214bb74e6 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-10-09 Julio Sanchez + * src/WriteGedcom.py: fixed error caused by incomplete migration to + handle-based storage API + 2005-10-09 Don Allingham * src/Spell.py: give more intelligent error message if spelling checker is not found. diff --git a/gramps2/src/WriteGedcom.py b/gramps2/src/WriteGedcom.py index 0dd803093..1d1b0917c 100644 --- a/gramps2/src/WriteGedcom.py +++ b/gramps2/src/WriteGedcom.py @@ -687,7 +687,7 @@ class GedcomWriter: for (gramps_id, family_handle, family) in sorted: father_alive = mother_alive = 0 self.writeln("0 @%s@ FAM" % gramps_id) - self.frefn(family_handle) + self.frefn(family) person_handle = family.get_father_handle() if person_handle != None and self.plist.has_key(person_handle): person = self.db.get_person_from_handle(person_handle) @@ -1252,8 +1252,8 @@ class GedcomWriter: if match: self.writeln('1 REFN %d' % int(match.groups()[0])) - def frefn(self,family_handle): - match = _get_int.search(family_handle) + def frefn(self,family): + match = _get_int.search(family.get_gramps_id()) if match: self.writeln('1 REFN %d' % int(match.groups()[0]))