Return self from unserialize as convienience and to match other objects

svn: r18323
This commit is contained in:
Doug Blank 2011-10-15 15:02:51 +00:00
parent e3f5f4e9c9
commit d829ca51fa
2 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,7 @@ class Repository(NoteBase, AddressBase, UrlBase, PrimaryObject):
NoteBase.unserialize(self, note_list)
AddressBase.unserialize(self, address_list)
UrlBase.unserialize(self, urls)
return self
def get_text_data_list(self):
"""

View File

@ -81,6 +81,7 @@ class Source(MediaBase, NoteBase, PrimaryObject):
NoteBase.unserialize(self, note_list)
MediaBase.unserialize(self, media_list)
self.reporef_list = [RepoRef().unserialize(item) for item in reporef_list]
return self
def _has_handle_reference(self, classname, handle):
"""