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
2ffc8819
Commit
2ffc8819
authored
Jun 12, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
responsetypes - minor edits
parent
462823c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
common/lib/capa/responsetypes.py
+3
-1
No files found.
common/lib/capa/responsetypes.py
View file @
2ffc8819
...
...
@@ -104,7 +104,7 @@ class LoncapaResponse(object):
self
.
system
=
system
for
abox
in
inputfields
:
if
not
abox
.
tag
in
self
.
allowed_inputfields
:
if
abox
.
tag
not
in
self
.
allowed_inputfields
:
msg
=
"
%
s: cannot have input field
%
s"
%
(
unicode
(
self
),
abox
.
tag
)
msg
+=
"
\n
See XML source line
%
s"
%
getattr
(
xml
,
'sourceline'
,
'<unavailable>'
)
raise
LoncapaProblemError
(
msg
)
...
...
@@ -419,6 +419,8 @@ class NumericalResponse(LoncapaResponse):
else
:
return
CorrectMap
(
self
.
answer_id
,
'incorrect'
)
# TODO: add check_hint_condition(self,hxml_set,student_answers)
def
get_answers
(
self
):
return
{
self
.
answer_id
:
self
.
correct_answer
}
...
...
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