1 from django.http import HttpResponse
2 from portal.actions import delete_local_user
5 def dispatch(request, action):
7 if (action == 'delete') :
9 email = request.POST.get('email')
11 email = request.GET.get('email')
13 ret = delete_local_user(request, email)
15 # for email in emails :
17 # clear = clear_user_creds(request, email)
18 # if clear is not None:
24 # ret = { "ret" : 1, "emails" : emails }
28 return HttpResponse(json.dumps(ret), content_type="application/json")