equal
deleted
inserted
replaced
127 |
127 |
128 def confirm_wsp_participation(request, uid): |
128 def confirm_wsp_participation(request, uid): |
129 """ match id versus email and take lappy details. |
129 """ match id versus email and take lappy details. |
130 """ |
130 """ |
131 |
131 |
|
132 try: |
|
133 email = request.GET['email'] |
|
134 except MultiValueDictKeyError: |
|
135 raise Http404 |
|
136 |
|
137 try: |
|
138 user = Registrant.objects.get(id=uid, email=email) |
|
139 except Registrant.DoesNotExist: |
|
140 raise Http404 |
|
141 |
|
142 status = user.registrationinfo.status_of_attending_workshop |
|
143 if status == "3": |
|
144 return render_to_response("attending_wsp.html") |
|
145 elif status != "2": |
|
146 raise Http404 |
|
147 |
132 if request.method == "POST": |
148 if request.method == "POST": |
133 pass |
149 pass |
134 else: |
150 else: |
135 try: |
|
136 email = request.GET['email'] |
|
137 except MultiValueDictKeyError: |
|
138 raise Http404 |
|
139 |
|
140 try: |
|
141 Registrant.objects.get(id=uid, email=email) |
|
142 except Registrant.DoesNotExist: |
|
143 raise Http404 |
|
144 |
|
145 return render_to_response("cnf_wsp_ptc.html", {"email":email}) |
151 return render_to_response("cnf_wsp_ptc.html", {"email":email}) |
146 |
152 |
147 def admin_login(request): |
153 def admin_login(request): |
148 """ basic login. |
154 """ basic login. |
149 """ |
155 """ |