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 __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 __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 = ""