def wordcloud(request): eStats = EvernoteStatistics(request.user.profile) t = eStats.get_first_note_timestamp() notebooks = eStats.get_guid_map(notebookNames=True, tagNames=False).items() tags = eStats.get_guid_map(notebookNames=False, tagNames=True).items() return render_to_response('wordcloud.html', {'firstNote': t, 'EVERNOTE_HOST': settings.EVERNOTE_HOST, 'notebooks': notebooks, 'tags': tags}, context_instance=RequestContext(request))
def trends(request): eStats = EvernoteStatistics(request.user.profile) try: t = eStats.get_first_note_timestamp() #If we get an error while looking up a user's data send back to login except evernoteError.EDAMUserException: logout(request) return HttpResponseRedirect(reverse('account.views.login_page', args=[])) notebooks = eStats.get_guid_map(notebookNames=True, tagNames=False).items() tags = eStats.get_guid_map(notebookNames=False, tagNames=True).items() return render_to_response('trends.html', {'firstNote': t, 'notebooks': notebooks, 'tags': tags}, context_instance=RequestContext(request))
def map(request): eStats = EvernoteStatistics(request.user.profile) t = eStats.get_first_note_timestamp() return render_to_response('map.html', {'firstNote': t}, context_instance=RequestContext(request))
def organization(request): eStats = EvernoteStatistics(request.user.profile) t = eStats.get_first_note_timestamp() return render_to_response('organization.html', {'firstNote': t, 'EVERNOTE_HOST': settings.EVERNOTE_HOST}, context_instance=RequestContext(request))