* 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 4c54e54fe3
commit 9159ead0ad
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>
* src/PluginUtils/_ReportOptions.py: Use correct namespace for the
base clases from _Options module.

View File

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