--- a/sdi/views.py Thu Jul 29 11:56:26 2010 +0530
+++ b/sdi/views.py Thu Jul 29 15:59:18 2010 +0530
@@ -206,37 +206,7 @@
def confirm_wsp_participation(request, uid):
""" match id versus email and take lappy details.
"""
-
- try:
- email = request.GET['email']
- except MultiValueDictKeyError:
- raise Http404
-
- try:
- user = Registrant.objects.get(id=uid, email=email)
- except Registrant.DoesNotExist:
- raise Http404
-
- user_info = user.registrantinfo_set.all()[0]
- status = user_info.status_of_attending_workshop
- if status == "3":
- return render_to_response("attending_wsp.html")
- elif status != "2":
- raise Http404
-
- if request.method == "POST":
- try:
- has_laptop = request.POST['lap_status']
- except MultiValueDictKeyError:
- return render_to_response("cnf_wsp_ptc.html", {"user":user})
-
- user_info.status_of_attending_workshop = "3"
- user_info.has_laptop_for_workshop = True if has_laptop == "True" else False
- user_info.save()
-
- return render_to_response("attending_wsp.html")
- else:
- return render_to_response("cnf_wsp_ptc.html", {"user":user})
+ return render_to_response("workshop_info.html")
def confirm_sgd_participation(request, uid):
""" match id versus email and take lappy details.