sdi/views.py
branchanoop
changeset 95 ab554d46fd34
parent 93 505989755cd8
child 97 bf16c82df506
equal deleted inserted replaced
94:b38de804ff4d 95:ab554d46fd34
   122         else:
   122         else:
   123             return render_to_response("send_workshop_confirm.html", {"matches":matches})
   123             return render_to_response("send_workshop_confirm.html", {"matches":matches})
   124     else:
   124     else:
   125         return render_to_response("send_workshop_confirm.html", {"matches":matches}) 
   125         return render_to_response("send_workshop_confirm.html", {"matches":matches}) 
   126 
   126 
       
   127 def confirm_wsp_participation(request, uid):
       
   128     """ match id versus email and take lappy details.
       
   129     """
       
   130 
       
   131     if request.method == "POST":
       
   132         pass
       
   133     else:
       
   134         try:
       
   135             email = request.GET['email']
       
   136         except MultiValueDictKeyError:
       
   137             raise Http404
       
   138 
       
   139         try:
       
   140             Registrant.objects.get(id=uid, email=email)
       
   141         except Registrant.DoesNotExist:
       
   142             raise Http404
       
   143 
       
   144         return render_to_response("cnf_wsp_ptc.html", {"email":email})
       
   145 
       
   146 
   127 def admin_login(request):
   147 def admin_login(request):
   128     """ basic login.
   148     """ basic login.
   129     """
   149     """
   130 
   150 
   131     redirect_url = "/%s/registration/stats"%aup
   151     redirect_url = "/%s/registration/stats"%aup