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
e12048a3
Commit
e12048a3
authored
May 01, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #29 from edx-solutions/default-weight
default-weight: Change default weight value to 1
parents
8ac0305c
d2738d4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
mentoring/mentoring.py
+1
-1
mentoring/templates/xml/mentoring_default.xml
+2
-1
No files found.
mentoring/mentoring.py
View file @
e12048a3
...
@@ -69,7 +69,7 @@ class MentoringBlock(XBlockWithLightChildren):
...
@@ -69,7 +69,7 @@ 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
=
0
,
scope
=
Scope
.
content
)
weight
=
Float
(
help
=
"Defines the maximum total grade of the block."
,
default
=
1
,
scope
=
Scope
.
content
)
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
)
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
,
...
...
mentoring/templates/xml/mentoring_default.xml
View file @
e12048a3
<mentoring
url_name=
"{{ url_name }}"
>
<mentoring
url_name=
"{{ url_name }}"
weight=
"1"
>
<title>
Default Title
</title>
<html>
<html>
<p>
What is your goal?
</p>
<p>
What is your goal?
</p>
</html>
</html>
...
...
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