コード例 #1
0
 def _content(note, content):
     """
     content of the note
     :param note: note object
     :param content: content string to make the main body of the note
     :return:
     """
     note.content = EvernoteMgr.set_header()
     note.content += sanitize(content)
     return note
コード例 #2
0
ファイル: my_evernote.py プロジェクト: foxmask/django-th
 def _content(note, content):
     """
     content of the note
     :param note: note object
     :param content: content string to make the main body of the note
     :return:
     """
     note.content = EvernoteMgr.set_header()
     note.content += sanitize(content)
     return note
コード例 #3
0
 def test_set_header(self):
     header = EvernoteMgr.set_header()
     self.assertTrue('DOCTYPE en-note SYSTEM "http://xml.evernote.'
                     'com/pub/enml2.dtd' in header)
コード例 #4
0
 def test_set_header(self):
     header = EvernoteMgr.set_header()
     self.assertTrue('DOCTYPE en-note SYSTEM "http://xml.evernote.'
                     'com/pub/enml2.dtd' in header)