--- 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),
)
--- 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.
"""