* src/RelLib/_NoteBase.py (NoteBase.serialize): Work out the case of note being None -- leftover from gramps20.

svn: r6142
This commit is contained in:
Alex Roitman 2006-03-14 03:46:54 +00:00
parent bfe3121998
commit 1d5b63aaca
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-03-13 Alex Roitman <shura@gramps-project.org>
* src/RelLib/_NoteBase.py (NoteBase.serialize): Work out the case
of note being None -- leftover from gramps20.
2006-03-11 Alex Roitman <shura@gramps-project.org> 2006-03-11 Alex Roitman <shura@gramps-project.org>
* src/PluginUtils/_ReportOptions.py: Use correct namespace for the * src/PluginUtils/_ReportOptions.py: Use correct namespace for the
base clases from _Options module. base clases from _Options module.

View File

@ -55,6 +55,8 @@ class NoteBase:
self.note = Note(text) self.note = Note(text)
def serialize(self): def serialize(self):
if self.note == None:
self.note = Note()
return self.note.serialize() return self.note.serialize()
def unserialize(self,data): def unserialize(self,data):