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
8c301e04
Commit
8c301e04
authored
Sep 05, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #614 from MITx/feature/arjun/fix_customresponse_msg
Clean up customresponse messages + points
parents
a0608df7
08693a1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
common/lib/capa/capa/responsetypes.py
+3
-1
No files found.
common/lib/capa/capa/responsetypes.py
View file @
8c301e04
...
@@ -916,6 +916,7 @@ def sympy_check2():
...
@@ -916,6 +916,7 @@ def sympy_check2():
try
:
try
:
exec
self
.
code
in
self
.
context
[
'global_context'
],
self
.
context
exec
self
.
code
in
self
.
context
[
'global_context'
],
self
.
context
correct
=
self
.
context
[
'correct'
]
correct
=
self
.
context
[
'correct'
]
messages
=
self
.
context
[
'messages'
]
except
Exception
as
err
:
except
Exception
as
err
:
print
"oops in customresponse (code) error
%
s"
%
err
print
"oops in customresponse (code) error
%
s"
%
err
print
"context = "
,
self
.
context
print
"context = "
,
self
.
context
...
@@ -970,7 +971,8 @@ def sympy_check2():
...
@@ -970,7 +971,8 @@ def sympy_check2():
# build map giving "correct"ness of the answer(s)
# build map giving "correct"ness of the answer(s)
correct_map
=
CorrectMap
()
correct_map
=
CorrectMap
()
for
k
in
range
(
len
(
idset
)):
for
k
in
range
(
len
(
idset
)):
correct_map
.
set
(
idset
[
k
],
correct
[
k
],
msg
=
messages
[
k
])
correct_map
.
set
(
idset
[
k
],
correct
[
k
],
msg
=
messages
[
k
],
npoints
=
self
.
maxpoints
[
idset
[
k
]])
return
correct_map
return
correct_map
def
get_answers
(
self
):
def
get_answers
(
self
):
...
...
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