Exemplo n.º 1
0
 def get_context_data(self, **kwargs):
     #context = super(ajaxEquationView, self).get(self, request, *args, **kwargs)
     #print "hi"
     equationString = self.request.GET.get('e', '')
     #equationString = "(cos(<x>^2)/<y>)*60"
     latexString = functions.convertStringToEquation(equationString)
     #print context
     ctx = {'latexString':latexString}
     return ctx
Exemplo n.º 2
0
 def get_context_data(self, **kwargs):
     equationString = "(cos(<x>^2)/<y>)*60"
     latexString = functions.convertStringToEquation(equationString)
     variable_types = VariableTypes.objects
     # print VariableTypes.objects.values('id', 'description')
     variable_types_form = VariableTypesForm()
     questionsForm = QuestionsForm()
     ctx = {"latexString": latexString, "variable_types_form": variable_types_form, "questionsForm": questionsForm}
     return ctx
Exemplo n.º 3
0
 def get_context_data(self, **kwargs):
     equationString = "(cos(<x>^2)/<y>)*60"
     latexString = functions.convertStringToEquation(equationString)
     variable_types = VariableTypes.objects
     qList = Questions.objects.values()
     #print VariableTypes.objects.values('id', 'description')
     variable_types_form = VariableTypesForm()
     questionsForm = QuestionsForm()
     ctx = {
             'latexString':latexString,
             'variable_types_form':variable_types_form,
             'questionsForm':questionsForm,
             'qList' : qList,
             }
     return ctx