def serialize(self): """ Convert the object to a serialized tuple of data. """ return (PrivacyBase.serialize(self), CitationBase.serialize(self), NoteBase.serialize(self), DateBase.serialize(self), LocationBase.serialize(self))
def serialize(self): """ Convert the object to a serialized tuple of data. """ return (CitationBase.serialize(self), NoteBase.serialize(self), DateBase.serialize(self), self.type, self.place, self.famc, self.temple, self.status, self.private)
def serialize(self): """ Convert the object to a serialized tuple of data. """ return (PrivacyBase.serialize(self), CitationBase.serialize(self), NoteBase.serialize(self), DateBase.serialize(self), self.first_name, SurnameBase.serialize(self), self.suffix, self.title, self.type.serialize(), self.group_as, self.sort_as, self.display_as, self.call, self.nick, self.famnick)
def serialize(self, no_text_date=False): """ Convert the object to a serialized tuple of data. """ return ( self.handle, # 0 self.gramps_id, # 1 DateBase.serialize(self, no_text_date), # 2 unicode(self.page), # 3 self.confidence, # 4 self.source_handle, # 5 NoteBase.serialize(self), # 6 MediaBase.serialize(self), # 7 self.datamap, # 8 self.change, # 9 self.private) # 10
def serialize(self, no_text_date=False): """ Convert 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 primitive Python types (string, integers), complex Python types (lists or tuples, or Python objects. If the target database cannot handle complex types (such as objects 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.__type.serialize(), DateBase.serialize(self, no_text_date), self.__description, self.place, CitationBase.serialize(self), NoteBase.serialize(self), MediaBase.serialize(self), AttributeBase.serialize(self), self.change, self.private)