Commit edbbcbea by dragonfi

Add assessment workbench scenario

parent ced18de9
...@@ -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 'accessment'", mode = String(help="Mode of the mentoring. 'standard' or 'assessment'",
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 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>
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment