* src/WriteGedcom.py: fixed error caused by incomplete migration to

handle-based storage API


svn: r5298
This commit is contained in:
Julio Sánchez 2005-10-10 07:56:18 +00:00
parent 88f4a669de
commit 91ed326d7a
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2005-10-09 Julio Sanchez <jsanchez@users.sourceforge.net>
* src/WriteGedcom.py: fixed error caused by incomplete migration to
handle-based storage API
2005-10-09 Don Allingham <don@gramps-project.org>
* src/Spell.py: give more intelligent error message if spelling
checker is not found.

View File

@ -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]))