Added missing 'return self' at end of unserialize to match the rest of the classes in lib.gen

svn: r13935
This commit is contained in:
Doug Blank 2009-12-29 03:24:38 +00:00
parent 42ed2c3295
commit 4f3d8f3675
2 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,7 @@ class GrampsType(object):
def unserialize(self, data):
"""Convert a serialized tuple of data to an object."""
self.__value, self.__string = data
return self
def __str__(self):
if self.__value == self._CUSTOM:

View File

@ -196,6 +196,7 @@ class Person(SourceBase, NoteBase, AttributeBase, MediaBase,
UrlBase.unserialize(self, urls)
SourceBase.unserialize(self, source_list)
NoteBase.unserialize(self, note_list)
return self
def _has_handle_reference(self, classname, handle):
"""