def __init__(self, source=None): PrivacyBase.__init__(self, source) CitationBase.__init__(self, source) NoteBase.__init__(self, source) RefBase.__init__(self, source) if source: self.rel = source.rel else: self.rel = ''
def unserialize(self, data): """ Convert a serialized tuple of data to an object. """ (privacy, citation_list, note_list, ref, self.rel) = data PrivacyBase.unserialize(self, privacy) CitationBase.unserialize(self, citation_list) NoteBase.unserialize(self, note_list) RefBase.unserialize(self, ref) return self
def __init__(self, source=None): PrivacyBase.__init__(self, source) NoteBase.__init__(self, source) RefBase.__init__(self, source) if source: self.call_number = source.call_number self.media_type = SourceMediaType(source.media_type) else: self.call_number = "" self.media_type = SourceMediaType()
def __init__(self, source=None): PrivacyBase.__init__(self, source) CitationBase.__init__(self, source) NoteBase.__init__(self, source) RefBase.__init__(self, source) if source: self.frel = ChildRefType(source.frel) self.mrel = ChildRefType(source.mrel) else: self.frel = ChildRefType() self.mrel = ChildRefType()
def __init__(self, source=None): PrivacyBase.__init__(self, source) CitationBase.__init__(self, source) NoteBase.__init__(self, source) RefBase.__init__(self, source) AttributeBase.__init__(self, source) if source: self.rect = source.rect else: self.rect = None
def unserialize(self, data): """ Convert a serialized tuple of data to an object. """ (note_list, ref, self.call_number, media_type, privacy) = data self.media_type = SourceMediaType() self.media_type.unserialize(media_type) PrivacyBase.unserialize(self, privacy) NoteBase.unserialize(self, note_list) RefBase.unserialize(self, ref) return self
def unserialize(self, data): """ Convert a serialized tuple of data to an object. """ (privacy, note_list, attribute_list, ref, role) = data PrivacyBase.unserialize(self, privacy) NoteBase.unserialize(self, note_list) AttributeBase.unserialize(self, attribute_list) RefBase.unserialize(self, ref) self.__role = EventRoleType() self.__role.unserialize(role) return self
def __init__(self, source=None): """ Create a new EventRef instance, copying from the source if present. """ PrivacyBase.__init__(self, source) NoteBase.__init__(self, source) AttributeBase.__init__(self, source) RefBase.__init__(self, source) if source: self.__role = EventRoleType(source.__role) else: self.__role = EventRoleType()
def unserialize(self, data): """ Convert a serialized tuple of data to an object. """ (privacy, citation_list, note_list, ref, frel, mrel) = data PrivacyBase.unserialize(self, privacy) CitationBase.unserialize(self, citation_list) NoteBase.unserialize(self, note_list) RefBase.unserialize(self, ref) self.frel = ChildRefType() self.frel.unserialize(frel) self.mrel = ChildRefType() self.mrel.unserialize(mrel) return self
def serialize(self): """ Convert the object to a serialized tuple of data. """ return (PrivacyBase.serialize(self), CitationBase.serialize(self), NoteBase.serialize(self), RefBase.serialize(self), self.frel.serialize(), self.mrel.serialize())
def serialize(self): """ Convert the object to a serialized tuple of data. """ return (PrivacyBase.serialize(self), NoteBase.serialize(self), AttributeBase.serialize(self), RefBase.serialize(self), self.__role.serialize())
def serialize(self): """ Convert the object to a serialized tuple of data. """ return ( NoteBase.serialize(self), RefBase.serialize(self), self.call_number, self.media_type.serialize(), PrivacyBase.serialize(self), )