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
edbbcbea
Commit
edbbcbea
authored
Aug 27, 2014
by
dragonfi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add assessment workbench scenario
parent
ced18de9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
4 deletions
+32
-4
mentoring/mentoring.py
+1
-2
mentoring/templates/xml/mentoring_assessment.xml
+28
-0
mentoring/utils.py
+3
-2
No files found.
mentoring/mentoring.py
View file @
edbbcbea
...
@@ -76,7 +76,7 @@ class MentoringBlock(XBlockWithLightChildren):
...
@@ -76,7 +76,7 @@ class MentoringBlock(XBlockWithLightChildren):
default
=
0
,
scope
=
Scope
.
user_state
,
enforce_type
=
True
)
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
,
enforce_type
=
True
)
scope
=
Scope
.
content
,
enforce_type
=
True
)
mode
=
String
(
help
=
"Mode of the mentoring. 'standard' or 'a
cc
essment'"
,
mode
=
String
(
help
=
"Mode of the mentoring. 'standard' or 'a
ss
essment'"
,
default
=
'standard'
,
scope
=
Scope
.
content
)
default
=
'standard'
,
scope
=
Scope
.
content
)
step
=
Integer
(
help
=
"Keep track of the student assessment progress."
,
step
=
Integer
(
help
=
"Keep track of the student assessment progress."
,
default
=
0
,
scope
=
Scope
.
user_state
,
enforce_type
=
True
)
default
=
0
,
scope
=
Scope
.
user_state
,
enforce_type
=
True
)
...
@@ -157,7 +157,6 @@ class MentoringBlock(XBlockWithLightChildren):
...
@@ -157,7 +157,6 @@ class MentoringBlock(XBlockWithLightChildren):
self
.
runtime
.
publish
(
self
,
event_type
,
data
)
self
.
runtime
.
publish
(
self
,
event_type
,
data
)
return
{
'result'
:
'success'
}
return
{
'result'
:
'success'
}
@property
@property
def
title
(
self
):
def
title
(
self
):
"""
"""
...
...
mentoring/templates/xml/mentoring_assessment.xml
0 → 100644
View file @
edbbcbea
<mentoring
url_name=
"{{ url_name }}"
display_name=
"Nav tooltip title"
weight=
"1"
mode=
"assessment"
>
<title>
Default Title
</title>
<html>
<p>
What is your goal?
</p>
</html>
<answer
name=
"goal"
/>
<mcq
name=
"mcq_1_1"
type=
"choices"
>
<question>
Do you like this MCQ?
</question>
<choice
value=
"yes"
>
Yes
</choice>
<choice
value=
"maybenot"
>
Maybe not
</choice>
<choice
value=
"understand"
>
I don't understand
</choice>
</mcq>
<mcq
name=
"mcq_1_2"
type=
"rating"
low=
"Not good at all"
high=
"Extremely good"
>
<question>
How much do you rate this MCQ?
</question>
<choice
value=
"notwant"
>
I don't want to rate it
</choice>
</mcq>
<mrq
name=
"mrq_1_1"
type=
"choices"
>
<question>
What do you like in this MRQ?
</question>
<choice
value=
"elegance"
>
Its elegance
</choice>
<choice
value=
"beauty"
>
Its beauty
</choice>
<choice
value=
"gracefulness"
>
Its gracefulness
</choice>
<choice
value=
"bugs"
>
Its bugs
</choice>
</mrq>
</mentoring>
mentoring/utils.py
View file @
edbbcbea
...
@@ -94,10 +94,11 @@ def get_scenarios_from_path(scenarios_path, include_identifier=False):
...
@@ -94,10 +94,11 @@ def get_scenarios_from_path(scenarios_path, include_identifier=False):
identifier
=
template
[:
-
4
]
identifier
=
template
[:
-
4
]
title
=
identifier
.
replace
(
'_'
,
' '
)
.
title
()
title
=
identifier
.
replace
(
'_'
,
' '
)
.
title
()
template_path
=
os
.
path
.
join
(
scenarios_path
,
template
)
template_path
=
os
.
path
.
join
(
scenarios_path
,
template
)
scenario
=
unicode
(
render_template
(
template_path
,
{
"url_name"
:
identifier
}))
if
not
include_identifier
:
if
not
include_identifier
:
scenarios
.
append
((
title
,
load_resource
(
template_path
)
))
scenarios
.
append
((
title
,
scenario
))
else
:
else
:
scenarios
.
append
((
identifier
,
title
,
load_resource
(
template_path
)
))
scenarios
.
append
((
identifier
,
title
,
scenario
))
return
scenarios
return
scenarios
...
...
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