# HG changeset patch # User nishanth # Date 1279183869 -19800 # Node ID ab554d46fd341e62d8469803247bbe0e8bccefe9 # Parent b38de804ff4d5b4b1ac112a11c19043e14143ab3 created basic view for confirmation of wsp participation diff -r b38de804ff4d -r ab554d46fd34 sdi/site/urls.py --- a/sdi/site/urls.py Thu Jul 15 14:06:58 2010 +0530 +++ b/sdi/site/urls.py Thu Jul 15 14:21:09 2010 +0530 @@ -1,7 +1,7 @@ from django.conf.urls.defaults import * from sage_days.sdi.views import register, reg_complete, list_stats, homepage, send_invi, admin_login, admin_logout -from sage_days.sdi.views import send_workshop_confirm +from sage_days.sdi.views import send_workshop_confirm, confirm_wsp_participation urlpatterns = patterns('', (r'^register/$', register), @@ -11,5 +11,6 @@ (r'^login/$', admin_login), (r'^logout/$', admin_logout), (r'^send_wsp_cnf/$', send_workshop_confirm), + (r'^cnf_wsp_cnf/(\w+)/$', confirm_wsp_participation), ) diff -r b38de804ff4d -r ab554d46fd34 sdi/views.py --- 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. """