示例#1
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (SourceBase.serialize(self), NoteBase.serialize(self),
             DateBase.serialize(self), self.type, self.place, self.famc,
             self.temple, self.status)
示例#2
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (DateBase.serialize(self), PrivacyBase.serialize(self),
             NoteBase.serialize(self), self.confidence,
             RefBase.serialize(self), self.page, self.text)
示例#3
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))
示例#4
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (DateBase.serialize(self),
             PrivacyBase.serialize(self),
             NoteBase.serialize(self),
             self.confidence,
             RefBase.serialize(self),
             self.page, self.text)
示例#5
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),
             self.first_name, self.surname, self.suffix, self.title,
             self.type.serialize(), self.prefix, self.patronymic,
             self.group_as, self.sort_as, self.display_as, self.call)
示例#6
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (
         SourceBase.serialize(self),
         NoteBase.serialize(self),
         DateBase.serialize(self),
         self.type,
         self.place,
         self.famc,
         self.temple,
         self.status,
     )
示例#7
0
    def serialize(self):
        """
        Converts the data held in the event to a Python tuple that
        represents all the data elements. This method is used to convert
        the object into a form that can easily be saved to a database.

        These elements may be primative Python types (string, integers),
        complex Python types (lists or tuples, or Python objects. If the
        target database cannot handle complex types (such as objectes or
        lists), the database is responsible for converting the data into
        a form that it can use.

        @returns: Returns a python tuple containing the data that should
            be considered persistent.
        @rtype: tuple
        """
        return (self.handle, self.gramps_id, self.path, self.mime, self.desc,
                AttributeBase.serialize(self), SourceBase.serialize(self),
                NoteBase.serialize(self), self.change,
                DateBase.serialize(self), self.marker.serialize(),
                self.private)
示例#8
0
    def serialize(self):
        """
        Converts the data held in the event to a Python tuple that
        represents all the data elements. This method is used to convert
        the object into a form that can easily be saved to a database.

        These elements may be primative Python types (string, integers),
        complex Python types (lists or tuples, or Python objects. If the
        target database cannot handle complex types (such as objectes or
        lists), the database is responsible for converting the data into
        a form that it can use.

        @returns: Returns a python tuple containing the data that should
            be considered persistent.
        @rtype: tuple
        """
        return (self.handle, self.gramps_id, self.path, self.mime, self.desc,
                AttributeBase.serialize(self),
                SourceBase.serialize(self),
                NoteBase.serialize(self),
                self.change,
                DateBase.serialize(self),
                self.marker.serialize(),
                self.private)