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
b6a23798
Commit
b6a23798
authored
Jul 22, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #48 from FiloSottile/optional_enforce_type
Make use of the new optional enforce_type flag
parents
f0acda19
66eefe51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mentoring/mentoring.py
+4
-3
No files found.
mentoring/mentoring.py
View file @
b6a23798
...
@@ -69,11 +69,12 @@ class MentoringBlock(XBlockWithLightChildren):
...
@@ -69,11 +69,12 @@ class MentoringBlock(XBlockWithLightChildren):
default
=
False
,
scope
=
Scope
.
content
)
default
=
False
,
scope
=
Scope
.
content
)
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
)
xml_content
=
String
(
help
=
"XML content"
,
default
=
''
,
scope
=
Scope
.
content
)
xml_content
=
String
(
help
=
"XML content"
,
default
=
''
,
scope
=
Scope
.
content
)
weight
=
Float
(
help
=
"Defines the maximum total grade of the block."
,
default
=
1
,
scope
=
Scope
.
content
)
weight
=
Float
(
help
=
"Defines the maximum total grade of the block."
,
default
=
1
,
scope
=
Scope
.
content
,
enforce_type
=
True
)
num_attempts
=
Integer
(
help
=
"Number of attempts a user has answered for this questions"
,
num_attempts
=
Integer
(
help
=
"Number of attempts a user has answered for this questions"
,
default
=
0
,
scope
=
Scope
.
user_state
)
default
=
0
,
scope
=
Scope
.
user_state
,
enforce_type
=
True
)
max_attempts
=
Integer
(
help
=
"Number of max attempts for this questions"
,
default
=
0
,
max_attempts
=
Integer
(
help
=
"Number of max attempts for this questions"
,
default
=
0
,
scope
=
Scope
.
content
)
scope
=
Scope
.
content
,
enforce_type
=
True
)
icon_class
=
'problem'
icon_class
=
'problem'
has_score
=
True
has_score
=
True
...
...
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