Example #1
0
File: views.py Project: cgrice/apps
def index(request, url=None):
    if url is None:
        return render_to_response('mnm/index.html', {})
    else:
        m = MailNoMore()
        result = m.parse(url)
        if result == False:
            return HttpResponseRedirect('/mnm')
        return render_to_response('mnm/index.html', {'article':result, 'url':url})
Example #2
0
File: views.py Project: cgrice/apps
def fetch(request):
    m = MailNoMore()
    result = m.parse(request.GET['url'])
    return HttpResponse(result)