From 8847f3d1ccf70150fbf3d17f0ca0069d8f7727c7 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 23 May 2006 23:37:24 +0000 Subject: [PATCH] 2006-05-23 Alex Roitman * src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Upgrade LdsOrd. svn: r6766 --- ChangeLog | 3 +++ src/GrampsDb/_GrampsBSDDB.py | 16 ++++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 063106065..7b6ae1ea0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-05-23 Alex Roitman + * src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Upgrade LdsOrd. + 2006-05-23 Martin Hawlisch * src/DataViews/_MapView.py: Catch exceptions of the PixbufLoader that occur if nothing or not an image have been downloaded. diff --git a/src/GrampsDb/_GrampsBSDDB.py b/src/GrampsDb/_GrampsBSDDB.py index 46e876d89..16886c294 100644 --- a/src/GrampsDb/_GrampsBSDDB.py +++ b/src/GrampsDb/_GrampsBSDDB.py @@ -1409,6 +1409,8 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback): # Switch from fixed lds ords to a list if lds_seal: + lds_seal.type = LdsOrd.SEAL_TO_SPOUSE + lds_seal.private = False family.lds_ord_list = [lds_seal] self.commit_family(family,trans) @@ -1497,8 +1499,18 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback): convert_url_9(url) # Switch from fixed lds ords to a list - person.lds_ord_list = [item for item - in [lds_bapt,lds_endow,lds_seal] if item] + if lds_bapt: + lds_bapt.type = LdsOrd.BAPTISM + person.lds_ord_list.append(lds_bapt) + if lds_endow: + lds_endow.type = LdsOrd.ENDOWMENT + person.lds_ord_list.append(lds_endow) + if lds_seal: + lds_seal.type = LdsOrd.SEAL_TO_PARENTS + person.lds_ord_list.append(lds_seal) + # Old lds ords did not have private attribute + for item in person.lds_ord_list: + item.private = False self.commit_person(person,trans) self.update()