def rnd_involvement(request, exp_id, pcpt_id): request.session.update(request.POST) request.session['timestamps'].update({request.path:datetime.utcnow()}) reqcontext = pcpt.get_scale_context('rnd_involvement') destination = reverse('eyevacs.views.explanation_overview', args= [exp_id, pcpt_id]) reqcontext['bt_label'] = bt_label reqcontext['destination'] = destination reqcontext['validation'] = validation return render(request, 'eyevacs/scale.html', reqcontext)
def rnd_searchgoals(request, exp_id, pcpt_id): request.session.update(request.POST) request.session['timestamps'].update({request.path:datetime.utcnow()}) reqcontext = pcpt.get_scale_context('rnd_searchgoals') destination = reverse('eyevacs.views.pl_demographics', args= [exp_id, pcpt_id]) reqcontext['bt_label'] = bt_label extracaption = {'left':ugettext('I do not agree at all'), 'right':ugettext('I agree very much')} reqcontext['extracaption'] = extracaption reqcontext['destination'] = destination reqcontext['validation'] = validation return render(request, 'eyevacs/scale.html', reqcontext)
def rnd_max(request, exp_id, pcpt_id): request.session.update(request.POST) request.session['timestamps'].update({request.path:datetime.utcnow()}) reqcontext = {} ######################################################################## # lang = request.session['django_language'] # reqcontext['language'] = 'language: '+ lang +'\n-------------\n' ######################################################################## # reqcontext = pcpt.get_scale_context('rnd_max') destination = reverse('eyevacs.views.rnd_regret', args= [exp_id, pcpt_id]) reqcontext['destination'] = destination reqcontext['bt_label'] = bt_label extracaption = {'left':ugettext('I do not agree at all'), 'right':ugettext('I agree very much')} reqcontext['extracaption'] = extracaption reqcontext['validation'] = validation reqcontext.update(pcpt.get_scale_context('rnd_max')) # debugpostdata(reqcontext, 'POST:', request.POST, 'SESSION:', request.session.items()) return render(request, 'eyevacs/scale.html', reqcontext)