Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
70ec8eb4
Commit
70ec8eb4
authored
Aug 01, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #54 from aboudreault/assessment-fixes
Some fixes for assessment workflow..
parents
085f008f
04e41909
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
mentoring/mentoring.py
+3
-2
mentoring/public/js/mentoring_assessment_view.js
+1
-1
No files found.
mentoring/mentoring.py
View file @
70ec8eb4
...
@@ -239,7 +239,7 @@ class MentoringBlock(XBlockWithLightChildren):
...
@@ -239,7 +239,7 @@ class MentoringBlock(XBlockWithLightChildren):
def
handleAssessmentSubmit
(
self
,
submissions
,
suffix
):
def
handleAssessmentSubmit
(
self
,
submissions
,
suffix
):
completed
=
False
completed
=
False
step
=
0
current_child
=
None
children
=
[
child
for
child
in
self
.
get_children_objects
()
\
children
=
[
child
for
child
in
self
.
get_children_objects
()
\
if
not
isinstance
(
child
,
TitleBlock
)]
if
not
isinstance
(
child
,
TitleBlock
)]
...
@@ -249,6 +249,7 @@ class MentoringBlock(XBlockWithLightChildren):
...
@@ -249,6 +249,7 @@ class MentoringBlock(XBlockWithLightChildren):
# Assessment mode doesn't allow to modify answers
# Assessment mode doesn't allow to modify answers
# This will get the student back at the step he should be
# This will get the student back at the step he should be
current_child
=
child
step
=
children
.
index
(
child
)
step
=
children
.
index
(
child
)
if
self
.
step
>
step
or
self
.
max_attempts_reached
:
if
self
.
step
>
step
or
self
.
max_attempts_reached
:
step
=
self
.
step
step
=
self
.
step
...
@@ -265,7 +266,7 @@ class MentoringBlock(XBlockWithLightChildren):
...
@@ -265,7 +266,7 @@ class MentoringBlock(XBlockWithLightChildren):
completed
=
child_result
[
'completed'
]
completed
=
child_result
[
'completed'
]
(
raw_score
,
score
,
correct
,
incorrect
)
=
self
.
score
(
raw_score
,
score
,
correct
,
incorrect
)
=
self
.
score
if
step
==
len
(
self
.
steps
)
:
if
current_child
==
self
.
steps
[
-
1
]
:
log
.
info
(
u'Last assessment step submitted: {}'
.
format
(
submissions
))
log
.
info
(
u'Last assessment step submitted: {}'
.
format
(
submissions
))
if
not
self
.
max_attempts_reached
:
if
not
self
.
max_attempts_reached
:
self
.
runtime
.
publish
(
self
,
'grade'
,
{
self
.
runtime
.
publish
(
self
,
'grade'
,
{
...
...
mentoring/public/js/mentoring_assessment_view.js
View file @
70ec8eb4
...
@@ -43,7 +43,7 @@ function MentoringAssessmentView(runtime, element, mentoring) {
...
@@ -43,7 +43,7 @@ function MentoringAssessmentView(runtime, element, mentoring) {
if
(
result
.
result
!==
'success'
)
if
(
result
.
result
!==
'success'
)
return
;
return
;
active_child
=
0
;
active_child
=
-
1
;
displayNextChild
();
displayNextChild
();
tryAgainDOM
.
hide
();
tryAgainDOM
.
hide
();
submitDOM
.
show
().
removeAttr
(
'disabled'
);
submitDOM
.
show
().
removeAttr
(
'disabled'
);
...
...
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