def note_to_text(self, note, **kwargs): t = Text.Text(text=note.get_note_string()) return t
def bookmark_to_text(self, bookmark): t = Text.Text(text=self._to_text(bookmark)) return t
def email_to_text(self, email, **kwargs): t = Text.Text(text=email.get_email_string()) return t
def setting_to_text(self, setting): t = Text.Text(text=self._to_text(setting)) return t
def file_to_text(self, f, **kwargs): test = None if f.get_mimetype().startswith("text"): text = Text.Text(text=f.get_contents_as_text()) return text
def event_to_text(self, event, **kwargs): t = Text.Text(text=event.get_ical_string()) return t
def contact_to_text(self, contact, **kwargs): #get vcard data t = Text.Text(text=contact.get_vcard_string()) return t
def convert_to_text(self, test, **kwargs): t = Text.Text(text=test.integerData) return t