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
04e41909
Commit
04e41909
authored
Jul 31, 2014
by
Alan Boudreault
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes for assessment workflow..
parent
085f008f
Hide 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 @
04e41909
...
...
@@ -239,7 +239,7 @@ class MentoringBlock(XBlockWithLightChildren):
def
handleAssessmentSubmit
(
self
,
submissions
,
suffix
):
completed
=
False
step
=
0
current_child
=
None
children
=
[
child
for
child
in
self
.
get_children_objects
()
\
if
not
isinstance
(
child
,
TitleBlock
)]
...
...
@@ -249,6 +249,7 @@ class MentoringBlock(XBlockWithLightChildren):
# Assessment mode doesn't allow to modify answers
# This will get the student back at the step he should be
current_child
=
child
step
=
children
.
index
(
child
)
if
self
.
step
>
step
or
self
.
max_attempts_reached
:
step
=
self
.
step
...
...
@@ -265,7 +266,7 @@ class MentoringBlock(XBlockWithLightChildren):
completed
=
child_result
[
'completed'
]
(
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
))
if
not
self
.
max_attempts_reached
:
self
.
runtime
.
publish
(
self
,
'grade'
,
{
...
...
mentoring/public/js/mentoring_assessment_view.js
View file @
04e41909
...
...
@@ -43,7 +43,7 @@ function MentoringAssessmentView(runtime, element, mentoring) {
if
(
result
.
result
!==
'success'
)
return
;
active_child
=
0
;
active_child
=
-
1
;
displayNextChild
();
tryAgainDOM
.
hide
();
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