Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-mentoring
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
xblock-mentoring
Commits
4d1cce78
Commit
4d1cce78
authored
Sep 10, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7 from open-craft/nodep-completion
Accept partial answers when dependencies aren't enforced
parents
d4532e4f
1e6bd197
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mentoring/mentoring.py
+4
-2
No files found.
mentoring/mentoring.py
View file @
4d1cce78
...
...
@@ -133,14 +133,16 @@ class MentoringBlock(XBlockWithLightChildren):
if
self
.
completed
:
completed
=
True
if
self
.
has_missing_dependency
:
if
not
self
.
enforce_dependency
:
# Accept partial answers when dependencies aren't enforced
completed
=
True
elif
self
.
has_missing_dependency
:
completed
=
False
message
=
'You need to complete all previous steps before being able to complete '
+
\
'the current one.'
elif
completed
and
self
.
next_step
==
self
.
url_name
:
self
.
next_step
=
self
.
followed_by
log
.
warn
(
submit_results
);
self
.
completed
=
bool
(
completed
)
return
{
'submitResults'
:
submit_results
,
...
...
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