From d829ca51fa36c1b9c6fdf85c61af0e8c496e63bc Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 15 Oct 2011 15:02:51 +0000 Subject: [PATCH] Return self from unserialize as convienience and to match other objects svn: r18323 --- src/gen/lib/repo.py | 1 + src/gen/lib/src.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gen/lib/repo.py b/src/gen/lib/repo.py index 9429af3f5..e9ff07623 100644 --- a/src/gen/lib/repo.py +++ b/src/gen/lib/repo.py @@ -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): """ diff --git a/src/gen/lib/src.py b/src/gen/lib/src.py index 4384329cf..84cb4721e 100644 --- a/src/gen/lib/src.py +++ b/src/gen/lib/src.py @@ -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): """