Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
bfd44125
Commit
bfd44125
authored
Aug 03, 2012
by
kimth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Every path except for 'get_score' gets filename instead of file object
parent
cbb377d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
common/lib/capa/capa/capa_problem.py
+3
-2
common/lib/capa/capa/responsetypes.py
+1
-1
No files found.
common/lib/capa/capa/capa_problem.py
View file @
bfd44125
...
@@ -31,7 +31,7 @@ import calc
...
@@ -31,7 +31,7 @@ import calc
from
correctmap
import
CorrectMap
from
correctmap
import
CorrectMap
import
eia
import
eia
import
inputtypes
import
inputtypes
from
util
import
contextualize_text
from
util
import
contextualize_text
,
convert_files_to_filenames
# to be replaced with auto-registering
# to be replaced with auto-registering
import
responsetypes
import
responsetypes
...
@@ -228,7 +228,8 @@ class LoncapaProblem(object):
...
@@ -228,7 +228,8 @@ class LoncapaProblem(object):
Calls the Response for each question in this problem, to do the actual grading.
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
oldcmap
=
self
.
correct_map
# old CorrectMap
newcmap
=
CorrectMap
()
# start new with empty CorrectMap
newcmap
=
CorrectMap
()
# start new with empty CorrectMap
# log.debug('Responders: %s' % self.responders)
# log.debug('Responders: %s' % self.responders)
...
...
common/lib/capa/capa/responsetypes.py
View file @
bfd44125
...
@@ -161,7 +161,7 @@ class LoncapaResponse(object):
...
@@ -161,7 +161,7 @@ class LoncapaResponse(object):
Returns the new CorrectMap, with (correctness,msg,hint,hintmode) for each answer_id.
Returns the new CorrectMap, with (correctness,msg,hint,hintmode) for each answer_id.
'''
'''
new_cmap
=
self
.
get_score
(
student_answers
)
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)
# log.debug('new_cmap = %s' % new_cmap)
return
new_cmap
return
new_cmap
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment