2007-08-29 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsDBDir.py: fast unserialize() * src/Editors/_EditPerson.py: fast unserialize() * src/RelLib/_SourceBase.py: fast unserialize() * src/RelLib/_Source.py: fast unserialize() * src/RelLib/_MediaObject.py: fast unserialize() * src/RelLib/_Person.py: fast unserialize() * src/RelLib/_DateBase.py: fast unserialize() * src/RelLib/_ChildRef.py: fast unserialize() * src/RelLib/_Name.py: fast unserialize() * src/RelLib/_Family.py: fast unserialize() * src/RelLib/_Place.py: fast unserialize() * src/RelLib/_RepoRef.py: fast unserialize() * src/RelLib/_Note.py: fast unserialize() * src/RelLib/_EventRef.py: fast unserialize() * src/RelLib/_Repository.py: fast unserialize() * src/RelLib/_Event.py: fast unserialize() * src/Utils.py: all callgraph to profile svn: r8890
This commit is contained in:
@@ -26,6 +26,8 @@ Repository Reference class for GRAMPS
|
||||
|
||||
__revision__ = "$Revision$"
|
||||
|
||||
import new
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# GRAMPS modules
|
||||
@@ -74,6 +76,7 @@ class RepoRef(SecondaryObject, PrivacyBase, NoteBase, RefBase):
|
||||
Converts a serialized tuple of data to an object
|
||||
"""
|
||||
(note_list, ref, self.call_number, media_type, privacy) = data
|
||||
self.media_type = new.instance(SourceMediaType, None)
|
||||
self.media_type.unserialize(media_type)
|
||||
PrivacyBase.unserialize(self, privacy)
|
||||
NoteBase.unserialize(self, note_list)
|
||||
|
||||
Reference in New Issue
Block a user