From 7836382732c77c231fc5fc48feb4d122c2caf446 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 20 Feb 2007 07:21:16 +0000 Subject: [PATCH] * src/RelLib/_Note.py (serialize,unserialize): Save and read change. * src/RelLib/_Repository.py (serialize,unserialize): Save and read change. svn: r8188 --- ChangeLog | 4 ++++ src/RelLib/_Note.py | 5 +++-- src/RelLib/_Repository.py | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 67a2fc63e..44f432cd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ 2007-02-19 Alex Roitman + * src/RelLib/_Note.py (serialize,unserialize): Save and read + change. + * src/RelLib/_Repository.py (serialize,unserialize): Save and read + change. * src/GrampsDb/_GrampsDbWriteXML.py): Export top-level notes and note references. * src/RelLib/_Note.py (set_type,get_type): Add methods. diff --git a/src/RelLib/_Note.py b/src/RelLib/_Note.py index ba7af2f74..ca307ff0c 100644 --- a/src/RelLib/_Note.py +++ b/src/RelLib/_Note.py @@ -72,14 +72,15 @@ class Note(BasicPrimaryObject): Converts the object to a serialized tuple of data """ return (self.handle,self.gramps_id,self.text,self.format, - self.type.serialize(),self.marker.serialize(),self.private) + self.type.serialize(),self.change, + self.marker.serialize(),self.private) def unserialize(self, data): """ Converts a serialized tuple of data to an object """ (self.handle,self.gramps_id,self.text,self.format, - the_type,the_marker,self.private) = data + the_type,self.change,the_marker,self.private) = data self.marker.unserialize(the_marker) self.type.unserialize(the_type) diff --git a/src/RelLib/_Repository.py b/src/RelLib/_Repository.py index 9fc7ecae8..b78b41644 100644 --- a/src/RelLib/_Repository.py +++ b/src/RelLib/_Repository.py @@ -63,7 +63,7 @@ class Repository(NoteBase, AddressBase, UrlBase, PrimaryObject): NoteBase.serialize(self), AddressBase.serialize(self), UrlBase.serialize(self), - self.marker.serialize(), self.private) + self.change, self.marker.serialize(), self.private) def unserialize(self, data): """ @@ -71,7 +71,7 @@ class Repository(NoteBase, AddressBase, UrlBase, PrimaryObject): back into the data in an Repository structure. """ (self.handle, self.gramps_id, the_type, self.name, note_list, - address_list, urls, marker, self.private) = data + address_list, urls, self.change, marker, self.private) = data self.marker.unserialize(marker) self.type.unserialize(the_type)