예제 #1
0
 def note_to_text(self, note, **kwargs):
     t = Text.Text(text=note.get_note_string())
     return t
예제 #2
0
 def bookmark_to_text(self, bookmark):
     t = Text.Text(text=self._to_text(bookmark))
     return t
예제 #3
0
 def email_to_text(self, email, **kwargs):
     t = Text.Text(text=email.get_email_string())
     return t
예제 #4
0
 def setting_to_text(self, setting):
     t = Text.Text(text=self._to_text(setting))
     return t
예제 #5
0
 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
예제 #6
0
 def event_to_text(self, event, **kwargs):
     t = Text.Text(text=event.get_ical_string())
     return t
예제 #7
0
 def contact_to_text(self, contact, **kwargs):
     #get vcard data
     t = Text.Text(text=contact.get_vcard_string())
     return t
예제 #8
0
 def convert_to_text(self, test, **kwargs):
     t = Text.Text(text=test.integerData)
     return t