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
d59681e3
Commit
d59681e3
authored
Nov 07, 2012
by
Vik Paruchuri
Committed by
Victor Shnayder
Nov 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alter css tag names, change documentation and answer display settings.
parent
ce744478
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
common/lib/capa/capa/responsetypes.py
+10
-9
common/lib/xmodule/xmodule/css/capa/display.scss
+2
-2
No files found.
common/lib/capa/capa/responsetypes.py
View file @
d59681e3
...
...
@@ -1850,28 +1850,29 @@ class OpenEndedResponse(LoncapaResponse):
'''
Parse OpenEndedResponse XML:
self.initial_display
self.payload
self.grader_type - type of grader to use. One of 'peer','ml','turk'
self.payload - dict containing keys --
'grader' : path to grader settings file, 'problem_id' : id of the problem
self.answer - What to display when show answer is clicked
'''
# Note that OpenEndedResponse is agnostic to the specific contents of grader_payload
grader_payload
=
oeparam
.
find
(
'grader_payload'
)
grader_payload
=
grader_payload
.
text
if
grader_payload
is
not
None
else
''
self
.
payload
=
{
'grader_payload'
:
grader_payload
}
#Parse initial display
initial_display
=
oeparam
.
find
(
'initial_display'
)
if
initial_display
is
not
None
:
self
.
initial_display
=
initial_display
.
text
else
:
self
.
initial_display
=
''
grader_type
=
oeparam
.
find
(
'grader_type'
)
if
grader_type
is
not
None
:
self
.
grader_type
=
grader_type
.
text
#Parse answer display
answer_display
=
oeparam
.
find
(
'answer_display'
)
if
answer_display
is
not
None
:
self
.
answer
=
answer_display
.
text
else
:
self
.
grader_type
=
'ml'
self
.
answer
=
"None available."
self
.
answer
=
"No answer available."
def
get_score
(
self
,
student_answers
):
try
:
...
...
common/lib/xmodule/xmodule/css/capa/display.scss
View file @
d59681e3
...
...
@@ -692,11 +692,11 @@ section.problem {
border-top
:
1px
solid
#DDD
;
border-left
:
20px
solid
#FAFAFA
;
.badspelling
{
bs
{
color
:
#BB0000
;
}
.badgrammar
{
bg
{
color
:
#BDA046
;
}
}
...
...
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