コード例 #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
コード例 #2
0
ファイル: _Location.py プロジェクト: daleathan/geddiff
 def unserialize(self, data):
     """
     Converts a serialized tuple of data to an object
     """
     (lbase, self.parish) = data
     LocationBase.unserialize(self, lbase)
     return self
コード例 #3
0
ファイル: _Researcher.py プロジェクト: daleathan/geddiff
    def __init__(self):
        """Initializes the Researcher object"""

        LocationBase.__init__(self )
        self.name = ""
        self.addr = ""
        self.email = ""
コード例 #4
0
ファイル: _Researcher.py プロジェクト: daleathan/geddiff
    def __init__(self):
        """Initializes the Researcher object"""

        LocationBase.__init__(self)
        self.name = ""
        self.addr = ""
        self.email = ""
コード例 #5
0
ファイル: _Address.py プロジェクト: daleathan/geddiff
 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)
コード例 #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 = ""
コード例 #7
0
ファイル: _Location.py プロジェクト: daleathan/geddiff
    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 = ""
コード例 #8
0
ファイル: _Address.py プロジェクト: daleathan/geddiff
 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
コード例 #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)
コード例 #10
0
ファイル: _Location.py プロジェクト: daleathan/geddiff
    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)
コード例 #11
0
ファイル: _Address.py プロジェクト: daleathan/geddiff
 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))
コード例 #12
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (LocationBase.serialize(self), self.parish)
コード例 #13
0
ファイル: _Location.py プロジェクト: daleathan/geddiff
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (LocationBase.serialize(self), self.parish)