Return self from unserialize as convienience and to match other objects
svn: r18323
This commit is contained in:
parent
e3f5f4e9c9
commit
d829ca51fa
@ -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):
|
||||
"""
|
||||
|
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user