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
a8181912
Commit
a8181912
authored
Mar 01, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prelim support for combinedopenended and peergrading types
parent
c24ba23e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
1 deletions
+68
-1
cms/djangoapps/contentstore/views.py
+2
-1
common/lib/xmodule/xmodule/templates/combinedopenended/default.yaml
+54
-0
common/lib/xmodule/xmodule/templates/peer_grading/default.yaml
+12
-0
No files found.
cms/djangoapps/contentstore/views.py
View file @
a8181912
...
...
@@ -66,7 +66,7 @@ from cms.djangoapps.models.settings.course_metadata import CourseMetadata
log
=
logging
.
getLogger
(
__name__
)
COMPONENT_TYPES
=
[
'customtag'
,
'discussion'
,
'html'
,
'problem'
,
'video'
]
COMPONENT_TYPES
=
[
'customtag'
,
'discussion'
,
'html'
,
'problem'
,
'video'
,
'peergrading'
,
'combinedopenended'
]
# cdodge: these are categories which should not be parented, they are detached from the hierarchy
DETACHED_CATEGORIES
=
[
'about'
,
'static_tab'
,
'course_info'
]
...
...
@@ -282,6 +282,7 @@ def edit_unit(request, location):
component_templates
=
defaultdict
(
list
)
templates
=
modulestore
()
.
get_items
(
Location
(
'i4x'
,
'edx'
,
'templates'
))
log
.
debug
(
templates
)
for
template
in
templates
:
if
template
.
location
.
category
in
COMPONENT_TYPES
:
component_templates
[
template
.
location
.
category
]
.
append
((
...
...
common/lib/xmodule/xmodule/templates/combinedopenended/default.yaml
0 → 100644
View file @
a8181912
---
metadata
:
display_name
:
Open Ended Response
rerandomize
:
never
showanswer
:
never
weight
:
"
"
attempts
:
10
max_score
:
2
is_graded
:
False
version
:
1
display_name
:
Test Question
data
:
|
<combinedopenended attempts="10" max_score="2" display_name = "Test Question" is_graded="True" version="1">
<rubric>
<rubric>
<category>
<description>Category 1</description>
<option>
The response does not incorporate what is needed for a one response.
</option>
<option>
The response is correct for category 1.
</option>
</category>
<category>
<description> Hydrophobia </description>
<option>
The response does not incorporate what is needed for a one response.
</option>
<option>
The response is correct for category 2.
</option>
</category>
</rubric>
</rubric>
<prompt>
<p>Why is the sky blue?</p>
</prompt>
<task>
<selfassessment/>
</task>
<task>
<openended min_score_to_attempt="1" max_score_to_attempt="2">
<openendedparam>
<initial_display>Enter essay here.</initial_display>
<answer_display>This is the answer.</answer_display>
<grader_payload>{"grader_settings" : "peer_grading.conf", "problem_id" : "700x/Demo"}</grader_payload>
</openendedparam>
</openended>
</task>
</combinedopenended>
children
:
[]
common/lib/xmodule/xmodule/templates/peer_grading/default.yaml
0 → 100644
View file @
a8181912
---
metadata
:
display_name
:
Peer Grading Interface
rerandomize
:
never
showanswer
:
never
weight
:
"
"
attempts
:
"
"
data
:
|
<peergrading use_for_single_location="False" is_graded="False" display_name = "Peer Grading Panel">
</peergrading>
children
:
[]
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