From 4f1d230de15df746c33e695a0027ccaabb4b425e Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 5 Apr 2006 17:15:44 +0000 Subject: [PATCH] fix lds unserialize svn: r6271 --- gramps2/ChangeLog | 4 ++++ gramps2/src/RelLib/_LdsOrd.py | 1 + gramps2/src/RelLib/_LdsOrdBase.py | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index bb00d099c..8911c4e5d 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-04-05 Don Allingham + * src/RelLib/_LdsOrd.py: unserialize returns self + * src/RelLib/_LdsOrdBase.py: variable name change + 2006-04-04 Brian Matherly * src/_ImgManip.py: open images as binary * src/docgen/ODFDoc.py: open images as binary, fix image embedding diff --git a/gramps2/src/RelLib/_LdsOrd.py b/gramps2/src/RelLib/_LdsOrd.py index 08a9c48f9..58a63aae2 100644 --- a/gramps2/src/RelLib/_LdsOrd.py +++ b/gramps2/src/RelLib/_LdsOrd.py @@ -96,6 +96,7 @@ class LdsOrd(SourceNote,DateBase,PlaceBase,PrivacyBase): self.famc,self.temple,self.status) = data SourceNote.unserialize(self,sn) DateBase.unserialize(self,date) + return self def get_text_data_list(self): """ diff --git a/gramps2/src/RelLib/_LdsOrdBase.py b/gramps2/src/RelLib/_LdsOrdBase.py index b94192505..7d24b891c 100644 --- a/gramps2/src/RelLib/_LdsOrdBase.py +++ b/gramps2/src/RelLib/_LdsOrdBase.py @@ -57,7 +57,7 @@ class LdsOrdBase: self.lds_ord_list = [] def serialize(self): - return [addr.serialize() for addr in self.lds_ord_list] + return [lds_ord.serialize() for lds_ord in self.lds_ord_list] def unserialize(self,data): self.lds_ord_list = [LdsOrd().unserialize(item) for item in data]