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
871c9310
Commit
871c9310
authored
Apr 06, 2017
by
Jeremy Bowman
Committed by
GitHub
Apr 06, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14648 from edx/iivic/fix-get-xblock-settings
Fix get xblock settings
parents
792db759
49c3f20a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
AUTHORS
+1
-0
cms/djangoapps/contentstore/views/item.py
+3
-0
cms/envs/bok_choy.py
+3
-0
cms/envs/devstack.py
+1
-5
No files found.
AUTHORS
View file @
871c9310
...
...
@@ -279,3 +279,4 @@ Jhony Avella <jhony.avella@edunext.co>
Tanmay Mohapatra <tanmaykm@gmail.com>
Brian Mesick <bmesick@edx.org>
Jeff LaJoie <jlajoie@edx.org>
Ivan Ivić <iivic@edx.org>
cms/djangoapps/contentstore/views/item.py
View file @
871c9310
...
...
@@ -51,6 +51,7 @@ from xmodule.modulestore.django import modulestore
from
xmodule.modulestore.draft_and_published
import
DIRECT_ONLY_CATEGORIES
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
,
InvalidLocationError
from
xmodule.modulestore.inheritance
import
own_metadata
from
xmodule.services
import
SettingsService
from
xmodule.tabs
import
CourseTabList
from
xmodule.x_module
import
PREVIEW_VIEWS
,
STUDIO_VIEW
,
STUDENT_VIEW
,
DEPRECATION_VSCOMPAT_EVENT
...
...
@@ -266,6 +267,8 @@ class StudioEditModuleRuntime(object):
return
DjangoXBlockUserService
(
self
.
_user
)
if
service_name
==
"studio_user_permissions"
:
return
StudioPermissionsService
(
self
.
_user
)
if
service_name
==
"settings"
:
return
SettingsService
()
return
None
...
...
cms/envs/bok_choy.py
View file @
871c9310
...
...
@@ -48,6 +48,9 @@ update_module_store_settings(
default_store
=
os
.
environ
.
get
(
'DEFAULT_STORE'
,
'draft'
),
)
# Needed to enable licensing on video modules
XBLOCK_SETTINGS
.
update
({
'VideoDescriptor'
:
{
'licensing_enabled'
:
True
}})
############################ STATIC FILES #############################
# Enable debug so that static assets are served by Django
...
...
cms/envs/devstack.py
View file @
871c9310
...
...
@@ -109,11 +109,7 @@ FEATURES['ENTRANCE_EXAMS'] = True
################################ COURSE LICENSES ################################
FEATURES
[
'LICENSING'
]
=
True
# Needed to enable licensing on video modules
XBLOCK_SETTINGS
=
{
"VideoDescriptor"
:
{
"licensing_enabled"
:
True
}
}
XBLOCK_SETTINGS
.
update
({
'VideoDescriptor'
:
{
'licensing_enabled'
:
True
}})
################################ SEARCH INDEX ################################
FEATURES
[
'ENABLE_COURSEWARE_INDEX'
]
=
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