Every path except for 'get_score' gets filename instead of file object

This commit is contained in:
kimth
2012-08-03 14:16:20 -04:00
parent cbb377d383
commit bfd441255a
2 changed files with 4 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ import calc
from correctmap import CorrectMap
import eia
import inputtypes
from util import contextualize_text
from util import contextualize_text, convert_files_to_filenames
# to be replaced with auto-registering
import responsetypes
@@ -228,7 +228,8 @@ class LoncapaProblem(object):
Calls the Response for each question in this problem, to do the actual grading.
'''
self.student_answers = answers
self.student_answers = convert_files_to_filenames(answers)
oldcmap = self.correct_map # old CorrectMap
newcmap = CorrectMap() # start new with empty CorrectMap
# log.debug('Responders: %s' % self.responders)

View File

@@ -161,7 +161,7 @@ class LoncapaResponse(object):
Returns the new CorrectMap, with (correctness,msg,hint,hintmode) for each answer_id.
'''
new_cmap = self.get_score(student_answers)
self.get_hints(student_answers, new_cmap, old_cmap)
self.get_hints(convert_files_to_filenames(student_answers), new_cmap, old_cmap)
# log.debug('new_cmap = %s' % new_cmap)
return new_cmap