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
f5fcd3e1
Commit
f5fcd3e1
authored
Feb 07, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make grader image dict a constant
parent
49733633
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_rubric.py
+6
-6
No files found.
common/lib/xmodule/xmodule/combined_open_ended_rubric.py
View file @
f5fcd3e1
...
@@ -3,6 +3,11 @@ from lxml import etree
...
@@ -3,6 +3,11 @@ from lxml import etree
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
GRADER_TYPE_IMAGE_DICT
=
{
'SA'
:
'/static/images/self_assessment_icon.png'
,
'PE'
:
'/static/images/peer_grading_icon.png'
,
'ML'
:
'/static/images/ml_grading_icon.png'
,
}
class
RubricParsingError
(
Exception
):
class
RubricParsingError
(
Exception
):
def
__init__
(
self
,
msg
):
def
__init__
(
self
,
msg
):
...
@@ -171,18 +176,13 @@ class CombinedOpenEndedRubric(object):
...
@@ -171,18 +176,13 @@ class CombinedOpenEndedRubric(object):
rubric_categories
[
i
][
'options'
][
j
][
'grader_types'
]
.
append
(
grader_type
)
rubric_categories
[
i
][
'options'
][
j
][
'grader_types'
]
.
append
(
grader_type
)
log
.
debug
(
rubric_categories
)
log
.
debug
(
rubric_categories
)
grader_type_image_dict
=
{
'SA'
:
'/static/images/self_assessment_icon.png'
,
'PE'
:
'/static/images/peer_grading_icon.png'
,
'ML'
:
'/static/images/ml_grading_icon.png'
,
}
html
=
self
.
system
.
render_template
(
'open_ended_rubric.html'
,
html
=
self
.
system
.
render_template
(
'open_ended_rubric.html'
,
{
'categories'
:
rubric_categories
,
{
'categories'
:
rubric_categories
,
'has_score'
:
True
,
'has_score'
:
True
,
'view_only'
:
True
,
'view_only'
:
True
,
'max_score'
:
max_score
,
'max_score'
:
max_score
,
'combined_rubric'
:
True
,
'combined_rubric'
:
True
,
'grader_type_image_dict'
:
grader_type_image_dict
,
'grader_type_image_dict'
:
GRADER_TYPE_IMAGE_DICT
,
})
})
return
html
return
html
...
...
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