* src/FamilyView.py: handle deleting of parent properly

* src/plugins/WriteGedcom.py: revert to using GRAMPS ID values
* src/plugins/WriteXML.py: use proper ID values

* src/FamilyView.py: fix removal of parents


svn: r3265
This commit is contained in:
Don Allingham
2004-07-11 23:53:02 +00:00
parent eb60dadb3f
commit 9d96849481
6 changed files with 73 additions and 24 deletions
+18 -2
View File
@@ -201,6 +201,22 @@ def sortById(first,second):
else:
return 1
#-------------------------------------------------------------------------
#
#
#
#-------------------------------------------------------------------------
def sort_by_gramps_id(first,second):
fid = first.get_gramps_id()
sid = second.get_gramps_id()
if fid == sid:
return 0
elif fid < sid:
return -1
else:
return 1
#-------------------------------------------------------------------------
#
#
@@ -809,7 +825,7 @@ class GedcomWriter:
# self.sbar.set_fraction(1.0)
def write_person(self,person):
self.writeln("0 @%s@ INDI" % self.pid(person.get_id()))
self.writeln("0 @%s@ INDI" % self.pid(person.get_gramps_id()))
restricted = self.restrict and person.probably_alive (self.db)
self.prefn(person)
primaryname = person.get_primary_name ()
@@ -1221,7 +1237,7 @@ class GedcomWriter:
return id
def prefn(self,person):
match = _get_int.search(person.get_id())
match = _get_int.search(person.get_gramps_id())
if match:
self.writeln('1 REFN %d' % int(match.groups()[0]))