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
efe5e491
Commit
efe5e491
authored
Feb 09, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate rubric rendering
parent
995a075f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
common/lib/xmodule/xmodule/combined_open_ended_rubric.py
+5
-2
No files found.
common/lib/xmodule/xmodule/combined_open_ended_rubric.py
View file @
efe5e491
...
...
@@ -53,7 +53,10 @@ class CombinedOpenEndedRubric(object):
rubric_scores
=
[
cat
[
'score'
]
for
cat
in
rubric_categories
]
max_scores
=
map
((
lambda
cat
:
cat
[
'options'
][
-
1
][
'points'
]),
rubric_categories
)
max_score
=
max
(
max_scores
)
html
=
self
.
system
.
render_template
(
'open_ended_rubric.html'
,
rubric_template
=
'open_ended_rubric.html'
if
self
.
view_only
:
rubric_template
=
'open_ended_view_only_rubric.html'
html
=
self
.
system
.
render_template
(
rubric_template
,
{
'categories'
:
rubric_categories
,
'has_score'
:
self
.
has_score
,
'view_only'
:
self
.
view_only
,
...
...
@@ -192,7 +195,7 @@ class CombinedOpenEndedRubric(object):
rubric_categories
[
i
][
'options'
][
j
][
'grader_types'
]
.
append
(
grader_type
)
log
.
debug
(
rubric_categories
)
html
=
self
.
system
.
render_template
(
'open_ended_rubric.html'
,
html
=
self
.
system
.
render_template
(
'open_ended_
combined_
rubric.html'
,
{
'categories'
:
rubric_categories
,
'has_score'
:
True
,
'view_only'
:
True
,
...
...
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