svn: r5877
This commit is contained in:
Alex Roitman 2006-02-03 22:31:46 +00:00
parent 6c8eae791c
commit 50c417337e
2 changed files with 7 additions and 11 deletions

View File

@ -57,7 +57,8 @@ class Note(BaseObject):
return (self.text,self.format)
def unserialize(self,data):
(self.text,self.format) = data
if data is not None:
(self.text,self.format) = data
return self
def get_text_data_list(self):

View File

@ -49,21 +49,16 @@ class NoteBase:
"""
if source and source.note:
self.note = Note(source.note.get())
text = source.note.get()
else:
self.note = None
text = ""
self.note = Note(text)
def serialize(self):
if self.note == None:
note = None
else:
note = self.note.serialize()
return note
return self.note.serialize()
def unserialize(self,data):
if data == None:
self.note = None
else:
if data is not None:
self.note = Note().unserialize(data)
def set_note(self,text):