Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
134c3f3d
Commit
134c3f3d
authored
Jan 08, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document open ended descriptor
parent
2f841c8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
common/lib/xmodule/xmodule/combined_open_ended_module.py
+6
-6
No files found.
common/lib/xmodule/xmodule/combined_open_ended_module.py
View file @
134c3f3d
...
...
@@ -482,8 +482,9 @@ class CombinedOpenEndedModule(XModule):
def
get_status
(
self
):
"""
Input:
Output:
Gets the status panel to be displayed at the top right.
Input: None
Output: The status html to be rendered
"""
status
=
[]
for
i
in
xrange
(
0
,
self
.
current_task_number
+
1
):
...
...
@@ -497,7 +498,7 @@ class CombinedOpenEndedModule(XModule):
class
CombinedOpenEndedDescriptor
(
XmlDescriptor
,
EditingDescriptor
):
"""
Module for adding
self assessment questions to course
s
Module for adding
combined open ended question
s
"""
mako_template
=
"widgets/html-edit.html"
module_class
=
CombinedOpenEndedModule
...
...
@@ -513,14 +514,13 @@ class CombinedOpenEndedDescriptor(XmlDescriptor, EditingDescriptor):
@classmethod
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:
{
'rubric': 'some-html',
'prompt': 'some-html',
'submitmessage': 'some-html'
'hintprompt': 'some-html'
'task_xml': dictionary of xml strings,
}
"""
expected_children
=
[
'task'
,
'rubric'
,
'prompt'
]
...
...
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