Commit 134c3f3d by Vik Paruchuri

Document open ended descriptor

parent 2f841c8a
...@@ -482,8 +482,9 @@ class CombinedOpenEndedModule(XModule): ...@@ -482,8 +482,9 @@ class CombinedOpenEndedModule(XModule):
def get_status(self): def get_status(self):
""" """
Input: Gets the status panel to be displayed at the top right.
Output: Input: None
Output: The status html to be rendered
""" """
status=[] status=[]
for i in xrange(0,self.current_task_number+1): for i in xrange(0,self.current_task_number+1):
...@@ -497,7 +498,7 @@ class CombinedOpenEndedModule(XModule): ...@@ -497,7 +498,7 @@ class CombinedOpenEndedModule(XModule):
class CombinedOpenEndedDescriptor(XmlDescriptor, EditingDescriptor): class CombinedOpenEndedDescriptor(XmlDescriptor, EditingDescriptor):
""" """
Module for adding self assessment questions to courses Module for adding combined open ended questions
""" """
mako_template = "widgets/html-edit.html" mako_template = "widgets/html-edit.html"
module_class = CombinedOpenEndedModule module_class = CombinedOpenEndedModule
...@@ -513,14 +514,13 @@ class CombinedOpenEndedDescriptor(XmlDescriptor, EditingDescriptor): ...@@ -513,14 +514,13 @@ class CombinedOpenEndedDescriptor(XmlDescriptor, EditingDescriptor):
@classmethod @classmethod
def definition_from_xml(cls, xml_object, system): def definition_from_xml(cls, xml_object, system):
""" """
Pull out the rubric, prompt, and submitmessage into a dictionary. Pull out the individual tasks, the rubric, and the prompt, and parse
Returns: Returns:
{ {
'rubric': 'some-html', 'rubric': 'some-html',
'prompt': 'some-html', 'prompt': 'some-html',
'submitmessage': 'some-html' 'task_xml': dictionary of xml strings,
'hintprompt': 'some-html'
} }
""" """
expected_children = ['task', 'rubric', 'prompt'] expected_children = ['task', 'rubric', 'prompt']
......
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