sdi/views.py
branchanoop
changeset 95 ab554d46fd34
parent 93 505989755cd8
child 97 bf16c82df506
--- a/sdi/views.py	Thu Jul 15 14:06:58 2010 +0530
+++ b/sdi/views.py	Thu Jul 15 14:21:09 2010 +0530
@@ -124,6 +124,26 @@
     else:
         return render_to_response("send_workshop_confirm.html", {"matches":matches}) 
 
+def confirm_wsp_participation(request, uid):
+    """ match id versus email and take lappy details.
+    """
+
+    if request.method == "POST":
+        pass
+    else:
+        try:
+            email = request.GET['email']
+        except MultiValueDictKeyError:
+            raise Http404
+
+        try:
+            Registrant.objects.get(id=uid, email=email)
+        except Registrant.DoesNotExist:
+            raise Http404
+
+        return render_to_response("cnf_wsp_ptc.html", {"email":email})
+
+
 def admin_login(request):
     """ basic login.
     """