Example #1
0
 def unserialize(self, data):
     """
     Converts a serialized tuple of data to an object
     """
     (lbase, self.parish) = data
     LocationBase.unserialize(self, lbase)
     return self
Example #2
0
 def unserialize(self, data):
     """
     Converts a serialized tuple of data to an object
     """
     (lbase, self.parish) = data
     LocationBase.unserialize(self, lbase)
     return self
Example #3
0
    def __init__(self):
        """Initializes the Researcher object"""

        LocationBase.__init__(self )
        self.name = ""
        self.addr = ""
        self.email = ""
Example #4
0
    def __init__(self):
        """Initializes the Researcher object"""

        LocationBase.__init__(self)
        self.name = ""
        self.addr = ""
        self.email = ""
Example #5
0
 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)
Example #6
0
    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 = ""
Example #7
0
    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 = ""
Example #8
0
 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
Example #9
0
    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)
Example #10
0
    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)
Example #11
0
 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))
Example #12
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (LocationBase.serialize(self), self.parish)
Example #13
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (LocationBase.serialize(self), self.parish)