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
52c971dc
Commit
52c971dc
authored
Nov 02, 2012
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
persist hints to database, remove check button if too many attempts
parent
37ad2741
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
common/lib/xmodule/xmodule/js/src/selfassessment/display.coffee
+1
-0
common/lib/xmodule/xmodule/self_assessment_module.py
+3
-1
No files found.
common/lib/xmodule/xmodule/js/src/selfassessment/display.coffee
View file @
52c971dc
...
@@ -9,6 +9,7 @@ $(document).on('click', 'section.sa-wrapper input#show', ( ->
...
@@ -9,6 +9,7 @@ $(document).on('click', 'section.sa-wrapper input#show', ( ->
$
(
'section.sa-wrapper p#rubric'
).
append
(
"Your answer:
#{
answer
}
"
)
$
(
'section.sa-wrapper p#rubric'
).
append
(
"Your answer:
#{
answer
}
"
)
$
(
'section.sa-wrapper p#rubric'
).
append
(
response
.
rubric
)
$
(
'section.sa-wrapper p#rubric'
).
append
(
response
.
rubric
)
else
else
$
(
'section.sa-wrapper input#show'
).
remove
()
$
(
'section.sa-wrapper p#rubric'
).
append
(
response
.
message
)
$
(
'section.sa-wrapper p#rubric'
).
append
(
response
.
message
)
));
));
...
...
common/lib/xmodule/xmodule/self_assessment_module.py
View file @
52c971dc
...
@@ -27,7 +27,8 @@ from xmodule.contentstore.content import XASSET_SRCREF_PREFIX, StaticContent
...
@@ -27,7 +27,8 @@ from xmodule.contentstore.content import XASSET_SRCREF_PREFIX, StaticContent
log
=
logging
.
getLogger
(
"mitx.courseware"
)
log
=
logging
.
getLogger
(
"mitx.courseware"
)
#Set the default number of max attempts. Should be 1 for production
#Set the default number of max attempts. Should be 1 for production
max_attempts
=
100
#Set higher for debugging/testing
max_attempts
=
1
def
only_one
(
lst
,
default
=
""
,
process
=
lambda
x
:
x
):
def
only_one
(
lst
,
default
=
""
,
process
=
lambda
x
:
x
):
"""
"""
...
@@ -274,6 +275,7 @@ class SelfAssessmentModule(XModule):
...
@@ -274,6 +275,7 @@ class SelfAssessmentModule(XModule):
state
=
{
'seed'
:
1
,
state
=
{
'seed'
:
1
,
'student_answers'
:
self
.
answer
,
'student_answers'
:
self
.
answer
,
'hint'
:
self
.
hint
,
'correct_map'
:
{
'self_assess'
:
{
'correctness'
:
self
.
correctness
,
'correct_map'
:
{
'self_assess'
:
{
'correctness'
:
self
.
correctness
,
'npoints'
:
points
,
'npoints'
:
points
,
'msg'
:
""
,
'msg'
:
""
,
...
...
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