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
1e194f0e
Commit
1e194f0e
authored
Nov 20, 2012
by
Vik Paruchuri
Committed by
Victor Shnayder
Nov 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubric code, make sure it is removed properly.
parent
d71445f9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common/lib/capa/capa/capa_problem.py
+1
-1
common/lib/capa/capa/responsetypes.py
+2
-2
No files found.
common/lib/capa/capa/capa_problem.py
View file @
1e194f0e
...
...
@@ -72,7 +72,7 @@ global_context = {'random': random,
'miller'
:
chem
.
miller
}
# These should be removed from HTML output, including all subelements
html_problem_semantics
=
[
"codeparam"
,
"responseparam"
,
"answer"
,
"script"
,
"hintgroup"
,
"openendedparam"
]
html_problem_semantics
=
[
"codeparam"
,
"responseparam"
,
"answer"
,
"script"
,
"hintgroup"
,
"openendedparam"
,
"openendedrubric"
]
log
=
logging
.
getLogger
(
'mitx.'
+
__name__
)
...
...
common/lib/capa/capa/responsetypes.py
View file @
1e194f0e
...
...
@@ -1846,8 +1846,8 @@ class OpenEndedResponse(LoncapaResponse):
#Look for tag named openendedparam that encapsulates all grader settings
oeparam
=
self
.
xml
.
find
(
'openendedparam'
)
prompt
=
self
.
xml
.
find
(
'prompt'
)
rubric
=
self
.
xml
.
find
(
'rubric'
)
self
.
_parse_openendedresponse_xml
(
oeparam
,
prompt
)
rubric
=
self
.
xml
.
find
(
'
openended
rubric'
)
self
.
_parse_openendedresponse_xml
(
oeparam
,
prompt
,
rubric
)
def
stringify_children
(
self
,
node
,
strip_tags
=
True
):
"""
...
...
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