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
d4532e4f
Commit
d4532e4f
authored
Aug 13, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5 from FiloSottile/port_studio
Use the enforce_type feature to parse the bools
parents
92585717
2d950484
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
mentoring/light_children.py
+0
-2
mentoring/mentoring.py
+2
-2
No files found.
mentoring/light_children.py
View file @
d4532e4f
...
@@ -85,8 +85,6 @@ class LightChildrenMixin(XBlockWithChildrenFragmentsMixin):
...
@@ -85,8 +85,6 @@ class LightChildrenMixin(XBlockWithChildrenFragmentsMixin):
cls
.
add_node_as_child
(
block
,
xml_child
,
child_id
)
cls
.
add_node_as_child
(
block
,
xml_child
,
child_id
)
for
name
,
value
in
attr
:
for
name
,
value
in
attr
:
if
value
==
"false"
:
value
=
False
if
value
==
"true"
:
value
=
True
setattr
(
block
,
name
,
value
)
setattr
(
block
,
name
,
value
)
return
block
return
block
...
...
mentoring/mentoring.py
View file @
d4532e4f
...
@@ -65,8 +65,8 @@ class MentoringBlock(XBlockWithLightChildren):
...
@@ -65,8 +65,8 @@ class MentoringBlock(XBlockWithLightChildren):
url_name
=
String
(
help
=
"Name of the current step, used for URL building"
,
url_name
=
String
(
help
=
"Name of the current step, used for URL building"
,
default
=
'mentoring-default'
,
scope
=
Scope
.
content
)
default
=
'mentoring-default'
,
scope
=
Scope
.
content
)
enforce_dependency
=
Boolean
(
help
=
"Should the next step be the current block to complete?"
,
enforce_dependency
=
Boolean
(
help
=
"Should the next step be the current block to complete?"
,
default
=
True
,
scope
=
Scope
.
content
)
default
=
True
,
scope
=
Scope
.
content
,
enforce_type
=
True
)
display_submit
=
Boolean
(
help
=
"Allow to submit current block?"
,
default
=
True
,
scope
=
Scope
.
content
)
display_submit
=
Boolean
(
help
=
"Allow to submit current block?"
,
default
=
True
,
scope
=
Scope
.
content
,
enforce_type
=
True
)
xml_content
=
String
(
help
=
"XML content"
,
default
=
''
,
scope
=
Scope
.
content
)
xml_content
=
String
(
help
=
"XML content"
,
default
=
''
,
scope
=
Scope
.
content
)
has_children
=
True
has_children
=
True
icon_class
=
'problem'
icon_class
=
'problem'
...
...
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