def unserialize(self, data): """ Converts a serialized tuple of data to an object """ (note, ref, self.call_number, media_type) = data self.media_type.unserialize(media_type) NoteBase.unserialize(self, note) RefBase.unserialize(self, ref) return self
def __init__(self, source=None): SecondaryObject.__init__(self) PrivacyBase.__init__(self, source) SourceBase.__init__(self, source) NoteBase.__init__(self, source) RefBase.__init__(self, source) if source: self.rel = source.rel else: self.rel = ''
def unserialize(self, data): """ Converts a serialized tuple of data to an object """ (privacy, source_list, note, ref, self.rel) = data PrivacyBase.unserialize(self, privacy) SourceBase.unserialize(self, source_list) NoteBase.unserialize(self, note) RefBase.unserialize(self, ref) return self
def __init__(self, source=None): SecondaryObject.__init__(self) NoteBase.__init__(self, source) RefBase.__init__(self, source) if source: self.call_number = source.call_number self.media_type = source.media_type else: self.call_number = "" self.media_type = SourceMediaType()
def unserialize(self, data): """ Converts a serialized tuple of data to an object """ (date, privacy, note, self.confidence, ref, self.page, self.text) = data DateBase.unserialize(self, date) PrivacyBase.unserialize(self, privacy) NoteBase.unserialize(self, note) RefBase.unserialize(self, ref) return self
def unserialize(self, data): """ Converts a serialized tuple of data to an object """ (privacy, note, attribute_list, ref, role) = data PrivacyBase.unserialize(self, privacy) NoteBase.unserialize(self, note) AttributeBase.unserialize(self, attribute_list) RefBase.unserialize(self, ref) self.role.unserialize(role) return self
def __init__(self, source=None): SecondaryObject.__init__(self) PrivacyBase.__init__(self, source) SourceBase.__init__(self, source) NoteBase.__init__(self, source) RefBase.__init__(self, source) if source: self.frel = source.frel self.mrel = source.mrel else: self.frel = ChildRefType() self.mrel = ChildRefType()
def __init__(self, source=None): """ Creates a new EventRef instance, copying from the source if present. """ SecondaryObject.__init__(self) PrivacyBase.__init__(self, source) NoteBase.__init__(self, source) AttributeBase.__init__(self, source) RefBase.__init__(self, source) if source: self.role = source.role else: self.role = EventRoleType()
def __init__(self, source=None): """creates a new SourceRef, copying from the source if present""" SecondaryObject.__init__(self) DateBase.__init__(self, source) PrivacyBase.__init__(self, source) NoteBase.__init__(self, source) RefBase.__init__(self, source) if source: self.confidence = source.confidence self.page = source.page self.text = source.text else: self.confidence = SourceRef.CONF_NORMAL self.page = "" self.text = ""
def serialize(self): """ Converts the object to a serialized tuple of data """ return (DateBase.serialize(self), PrivacyBase.serialize(self), NoteBase.serialize(self), self.confidence, RefBase.serialize(self), self.page, self.text)
def serialize(self): """ Converts the object to a serialized tuple of data """ return (PrivacyBase.serialize(self), SourceBase.serialize(self), NoteBase.serialize(self), RefBase.serialize(self), self.frel.serialize(), self.mrel.serialize())
def serialize(self): """ Converts the object to a serialized tuple of data """ return ( NoteBase.serialize(self), RefBase.serialize(self), self.call_number, self.media_type.serialize())
def serialize(self): """ Converts the object to a serialized tuple of data """ return (PrivacyBase.serialize(self), SourceBase.serialize(self), NoteBase.serialize(self), RefBase.serialize(self), self.rel)
def serialize(self): """ Converts the object to a serialized tuple of data """ return (PrivacyBase.serialize(self), SourceBase.serialize(self), NoteBase.serialize(self), AttributeBase.serialize(self), RefBase.serialize(self), self.rect)
def serialize(self): """ Converts the object to a serialized tuple of data """ return ( PrivacyBase.serialize(self), NoteBase.serialize(self), AttributeBase.serialize(self), RefBase.serialize(self), self.role.serialize() )