* src/WriteGedcom.py: fixed error caused by incomplete migration to
handle-based storage API svn: r5298
This commit is contained in:
parent
88f4a669de
commit
91ed326d7a
@ -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>
|
2005-10-09 Don Allingham <don@gramps-project.org>
|
||||||
* src/Spell.py: give more intelligent error message if spelling
|
* src/Spell.py: give more intelligent error message if spelling
|
||||||
checker is not found.
|
checker is not found.
|
||||||
|
@ -687,7 +687,7 @@ class GedcomWriter:
|
|||||||
for (gramps_id, family_handle, family) in sorted:
|
for (gramps_id, family_handle, family) in sorted:
|
||||||
father_alive = mother_alive = 0
|
father_alive = mother_alive = 0
|
||||||
self.writeln("0 @%s@ FAM" % gramps_id)
|
self.writeln("0 @%s@ FAM" % gramps_id)
|
||||||
self.frefn(family_handle)
|
self.frefn(family)
|
||||||
person_handle = family.get_father_handle()
|
person_handle = family.get_father_handle()
|
||||||
if person_handle != None and self.plist.has_key(person_handle):
|
if person_handle != None and self.plist.has_key(person_handle):
|
||||||
person = self.db.get_person_from_handle(person_handle)
|
person = self.db.get_person_from_handle(person_handle)
|
||||||
@ -1252,8 +1252,8 @@ class GedcomWriter:
|
|||||||
if match:
|
if match:
|
||||||
self.writeln('1 REFN %d' % int(match.groups()[0]))
|
self.writeln('1 REFN %d' % int(match.groups()[0]))
|
||||||
|
|
||||||
def frefn(self,family_handle):
|
def frefn(self,family):
|
||||||
match = _get_int.search(family_handle)
|
match = _get_int.search(family.get_gramps_id())
|
||||||
if match:
|
if match:
|
||||||
self.writeln('1 REFN %d' % int(match.groups()[0]))
|
self.writeln('1 REFN %d' % int(match.groups()[0]))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user