django views - Python evernote api Error -
trying build app connects evernote api, in python/django. below code next error message: " 'store' object has no attribute 'notefilter' " http://dev.evernote.com/documentation/reference/notestore.html#svc_notestore 1 can see, notefilter attribute of notestore.
def list(request): nbname="mihkel's notebook" client = evernoteclient(token=token, sandbox=false) note_store = client.get_note_store() notebooks = note_store.listnotebooks() nb in notebooks: if nbname == nb.name: nb = nb filter = note_store.notefilter() filter.notebookguid = nb.guid notelist = note_store.findnotes(token,filter,0,10) break homecoming render_to_response('list.html', {'nb': nb, 'notelist':notelist})
solution:
from evernote.edam.notestore import notestore .... .... def list.. : ... filter = notestore.notefilter()
python django-views evernote
No comments:
Post a Comment