def unserialize(self, data): """ Converts a serialized tuple of data to an object """ (lbase, self.parish) = data LocationBase.unserialize(self, lbase) return self
def __init__(self): """Initializes the Researcher object""" LocationBase.__init__(self ) self.name = "" self.addr = "" self.email = ""
def __init__(self): """Initializes the Researcher object""" LocationBase.__init__(self) self.name = "" self.addr = "" self.email = ""
def __init__(self, source=None): """Creates a new Address instance, copying from the source if provided""" SecondaryObject.__init__(self) PrivacyBase.__init__(self, source) SourceBase.__init__(self, source) NoteBase.__init__(self, source) DateBase.__init__(self, source) LocationBase.__init__(self, source)
def __init__(self, source=None): """ Creates a Location object, copying from the source object if it exists. """ SecondaryObject.__init__(self) LocationBase.__init__(self, source) if source: self.parish = source.parish else: self.parish = ""
def unserialize(self, data): """ Converts a serialized tuple of data to an object """ (privacy, source_list, note, date, location) = data PrivacyBase.unserialize(self, privacy) SourceBase.unserialize(self, source_list) NoteBase.unserialize(self, note) DateBase.unserialize(self, date) LocationBase.unserialize(self, location) return self
def get_text_data_list(self): """ Returns the list of all textual attributes of the object. @return: Returns the list of all textual attributes of the object. @rtype: list """ return [self.parish] + LocationBase.get_text_data_list(self)
def serialize(self): """ Converts the object to a serialized tuple of data """ return (PrivacyBase.serialize(self), SourceBase.serialize(self), NoteBase.serialize(self), DateBase.serialize(self), LocationBase.serialize(self))
def serialize(self): """ Converts the object to a serialized tuple of data """ return (LocationBase.serialize(self), self.parish)