Commit da35c879 by kimth

Time to think about file interface with xqueue

parent 83f07e9f
...@@ -853,7 +853,7 @@ class CodeResponse(LoncapaResponse): ...@@ -853,7 +853,7 @@ class CodeResponse(LoncapaResponse):
log.error('Error in CodeResponse %s: cannot get student answer for %s; student_answers=%s' % (err, self.answer_id, student_answers)) log.error('Error in CodeResponse %s: cannot get student answer for %s; student_answers=%s' % (err, self.answer_id, student_answers))
raise Exception(err) raise Exception(err)
self.context.update({'submission': submission}) self.context.update({'submission': unicode(submission)}) # Submission could be a file
# Prepare xqueue request # Prepare xqueue request
#------------------------------------------------------------ #------------------------------------------------------------
...@@ -870,7 +870,7 @@ class CodeResponse(LoncapaResponse): ...@@ -870,7 +870,7 @@ class CodeResponse(LoncapaResponse):
'edX_cmd': 'get_score', 'edX_cmd': 'get_score',
'edX_tests': self.tests, 'edX_tests': self.tests,
'processor': self.code, 'processor': self.code,
'edX_student_response': submission} 'edX_student_response': unicode(submission)}
# Submit request # Submit request
error = xqueue_interface.send_to_queue(header=xheader, error = xqueue_interface.send_to_queue(header=xheader,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment