From a858c2a9b01a0c3d5c0f748fa3ae149311169f5e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 9 Mar 2009 11:39:58 +0000 Subject: [PATCH] 2792: Dates in sourcereferences in person_ref_list not upgraded svn: r12265 --- src/gen/db/dbdir.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/gen/db/dbdir.py b/src/gen/db/dbdir.py index a9101817c..e028274ea 100644 --- a/src/gen/db/dbdir.py +++ b/src/gen/db/dbdir.py @@ -1804,6 +1804,7 @@ class GrampsDBDir(GrampsDbBase, UpdateCallback): new_media_list = self.new_media_list_14(media_list) new_psource_list = self.new_source_list_14(psource_list) new_attribute_list = self.new_attribute_list_14(attribute_list) + new_person_ref_list = self.new_person_ref_list_14(person_ref_list) new_person = (junk_handle, # 0 gramps_id, # 1 @@ -1825,7 +1826,7 @@ class GrampsDBDir(GrampsDbBase, UpdateCallback): change, # 17 marker, # 18 pprivate, # 19 - person_ref_list, # 20 + new_person_ref_list, # 20 ) the_txn = self.env.txn_begin() @@ -1981,6 +1982,14 @@ class GrampsDBDir(GrampsDbBase, UpdateCallback): new_media_list.append((private, new_source_list, note_list, new_attribute_list, ref, role)) return new_media_list + def new_person_ref_list_14(self, person_ref_list): + new_person_ref_list = [] + for person_ref in person_ref_list: + (private, source_list, note_list, ref, rel) = person_ref + new_source_list = self.new_source_list_14(source_list) + new_person_ref_list.append((private, new_source_list, note_list, ref, rel)) + return new_person_ref_list + def convert_date_14(self, date): if date: (calendar, modifier, quality, dateval, text, sortval) = date