def dispatch(self,request,*args,**kwargs):
lessonSession = request.session.get(PRIVATELESSON_VALIDATION_STR,{})<EOL>try:<EOL><INDENT>self.lesson = PrivateLessonEvent.objects.get(id=lessonSession.get('<STR_LIT>'))<EOL><DEDENT>except (ValueError, ObjectDoesNotExist):<EOL><INDENT>messages.error(request,_('<STR_LIT>'))<EOL>return HttpResponseRedirect(reverse('<STR_LIT>'))<EOL><DEDENT>expiry = parse_datetime(lessonSession.get('<STR_LIT>','<STR_LIT>'),)<EOL>if not expiry or expiry < timezone.now():<EOL><INDENT>messages.info(request,_('<STR_LIT>'))<EOL>return HttpResponseRedirect(reverse('<STR_LIT>'))<EOL><DEDENT>self.payAtDoor = lessonSession.get('<STR_LIT>',False)<EOL>return super(PrivateLessonStudentInfoView,self).dispatch(request,*args,**kwargs)<EOL>
Handle the session data passed by the prior view.