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
bc881e73
Commit
bc881e73
authored
Jun 10, 2012
by
ichuang
Committed by
Matthew Mongeau
Jun 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add MITX_FEATURES['DISPLAY_HISTOGRAMS_TO_STAFF'] flag to settings
parent
bf5e0402
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletions
+3
-1
lms/djangoapps/courseware/module_render.py
+1
-1
lms/envs/common.py
+1
-0
lms/envs/dev_ike.py
+1
-0
No files found.
lms/djangoapps/courseware/module_render.py
View file @
bc881e73
...
@@ -169,7 +169,7 @@ def render_x_module(user, request, xml_module, module_object_preload, position=N
...
@@ -169,7 +169,7 @@ def render_x_module(user, request, xml_module, module_object_preload, position=N
content
=
instance
.
get_html
()
content
=
instance
.
get_html
()
# special extra information about each problem, only for users who are staff
# special extra information about each problem, only for users who are staff
if
False
and
user
.
is_staff
:
if
settings
.
MITX_FEATURES
.
get
(
'DISPLAY_HISTOGRAMS_TO_STAFF'
)
and
user
.
is_staff
:
module_id
=
xml_module
.
get
(
'id'
)
module_id
=
xml_module
.
get
(
'id'
)
histogram
=
grade_histogram
(
module_id
)
histogram
=
grade_histogram
(
module_id
)
render_histogram
=
len
(
histogram
)
>
0
render_histogram
=
len
(
histogram
)
>
0
...
...
lms/envs/common.py
View file @
bc881e73
...
@@ -37,6 +37,7 @@ PERFSTATS = False
...
@@ -37,6 +37,7 @@ PERFSTATS = False
MITX_FEATURES
=
{
MITX_FEATURES
=
{
'SAMPLE'
:
False
,
'SAMPLE'
:
False
,
'USE_DJANGO_PIPELINE'
:
True
,
'USE_DJANGO_PIPELINE'
:
True
,
'DISPLAY_HISTOGRAMS_TO_STAFF'
:
True
,
}
}
# Used for A/B testing
# Used for A/B testing
...
...
lms/envs/dev_ike.py
View file @
bc881e73
...
@@ -28,6 +28,7 @@ ENABLE_MULTICOURSE = True # set to False to disable multicourse display (see
...
@@ -28,6 +28,7 @@ ENABLE_MULTICOURSE = True # set to False to disable multicourse display (see
QUICKEDIT
=
True
QUICKEDIT
=
True
# MITX_FEATURES['USE_DJANGO_PIPELINE'] = False
# MITX_FEATURES['USE_DJANGO_PIPELINE'] = False
MITX_FEATURES
[
'DISPLAY_HISTOGRAMS_TO_STAFF'
]
=
False
COURSE_SETTINGS
=
{
'6.002_Spring_2012'
:
{
'number'
:
'6.002x'
,
COURSE_SETTINGS
=
{
'6.002_Spring_2012'
:
{
'number'
:
'6.002x'
,
'title'
:
'Circuits and Electronics'
,
'title'
:
'Circuits and Electronics'
,
...
...
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