def serialize(self): """ Convert the data held in the Place 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 """ if self.main_loc is None or self.main_loc.serialize() == _EMPTY_LOC: main_loc = None else: main_loc = self.main_loc.serialize() return (self.handle, self.gramps_id, self.title, self.long, self.lat, main_loc, [al.serialize() for al in self.alt_loc], UrlBase.serialize(self), MediaBase.serialize(self), CitationBase.serialize(self), NoteBase.serialize(self), self.change, self.private)
def serialize(self): """ Convert the object to a serialized tuple of data. """ return (PrivacyBase.serialize(self), CitationBase.serialize(self), NoteBase.serialize(self), RefBase.serialize(self), self.frel.serialize(), self.mrel.serialize())
def serialize(self): """ 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.father_handle, self.mother_handle, [cr.serialize() for cr in self.child_ref_list], self.type.serialize(), [er.serialize() for er in self.event_ref_list], MediaBase.serialize(self), AttributeBase.serialize(self), LdsOrdBase.serialize(self), CitationBase.serialize(self), NoteBase.serialize(self), self.change, TagBase.serialize(self), 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), LocationBase.serialize(self))
def serialize(self): """ Convert the object to a serialized tuple of data. """ return (PrivacyBase.serialize(self), CitationBase.serialize(self), NoteBase.serialize(self), self.type.serialize(), self.value)
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 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)