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
7503cc24
Commit
7503cc24
authored
Jul 11, 2014
by
Nimisha Asthagiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverting back to migrating the settings in the env files
parent
4859eee2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
7 deletions
+15
-7
cms/envs/aws.py
+2
-1
cms/envs/devstack.py
+5
-1
common/lib/xmodule/xmodule/modulestore/django.py
+0
-2
common/lib/xmodule/xmodule/modulestore/tests/test_modulestore_settings.py
+1
-1
lms/envs/aws.py
+2
-1
lms/envs/devstack.py
+5
-1
No files found.
cms/envs/aws.py
View file @
7503cc24
...
@@ -15,6 +15,7 @@ import os
...
@@ -15,6 +15,7 @@ import os
from
path
import
path
from
path
import
path
from
dealer.git
import
git
from
dealer.git
import
git
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
# configuration files are read during startup.
# configuration files are read during startup.
...
@@ -229,7 +230,7 @@ if AWS_SECRET_ACCESS_KEY == "":
...
@@ -229,7 +230,7 @@ if AWS_SECRET_ACCESS_KEY == "":
AWS_SECRET_ACCESS_KEY
=
None
AWS_SECRET_ACCESS_KEY
=
None
DATABASES
=
AUTH_TOKENS
[
'DATABASES'
]
DATABASES
=
AUTH_TOKENS
[
'DATABASES'
]
MODULESTORE
=
AUTH_TOKENS
.
get
(
'MODULESTORE'
,
MODULESTORE
)
MODULESTORE
=
convert_module_store_setting_if_needed
(
AUTH_TOKENS
.
get
(
'MODULESTORE'
,
MODULESTORE
)
)
CONTENTSTORE
=
AUTH_TOKENS
[
'CONTENTSTORE'
]
CONTENTSTORE
=
AUTH_TOKENS
[
'CONTENTSTORE'
]
DOC_STORE_CONFIG
=
AUTH_TOKENS
[
'DOC_STORE_CONFIG'
]
DOC_STORE_CONFIG
=
AUTH_TOKENS
[
'DOC_STORE_CONFIG'
]
# Datadog for events!
# Datadog for events!
...
...
cms/envs/devstack.py
View file @
7503cc24
...
@@ -72,8 +72,12 @@ DEBUG_TOOLBAR_CONFIG = {
...
@@ -72,8 +72,12 @@ DEBUG_TOOLBAR_CONFIG = {
DEBUG_TOOLBAR_MONGO_STACKTRACES
=
False
DEBUG_TOOLBAR_MONGO_STACKTRACES
=
False
###############################################################################
###############################################################################
#
Lastly, s
ee if the developer has any local overrides.
#
S
ee if the developer has any local overrides.
try
:
try
:
from
.private
import
*
# pylint: disable=F0401
from
.private
import
*
# pylint: disable=F0401
except
ImportError
:
except
ImportError
:
pass
pass
#####################################################################
# Lastly, run any migrations, if needed.
MODULESTORE
=
convert_module_store_setting_if_needed
(
MODULESTORE
)
common/lib/xmodule/xmodule/modulestore/django.py
View file @
7503cc24
...
@@ -18,7 +18,6 @@ from xmodule.modulestore.loc_mapper_store import LocMapperStore
...
@@ -18,7 +18,6 @@ from xmodule.modulestore.loc_mapper_store import LocMapperStore
from
xmodule.util.django
import
get_current_request_hostname
from
xmodule.util.django
import
get_current_request_hostname
import
xmodule.modulestore
# pylint: disable=unused-import
import
xmodule.modulestore
# pylint: disable=unused-import
from
xmodule.contentstore.django
import
contentstore
from
xmodule.contentstore.django
import
contentstore
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
# We may not always have the request_cache module available
# We may not always have the request_cache module available
try
:
try
:
...
@@ -86,7 +85,6 @@ def modulestore():
...
@@ -86,7 +85,6 @@ def modulestore():
"""
"""
global
_MIXED_MODULESTORE
# pylint: disable=global-statement
global
_MIXED_MODULESTORE
# pylint: disable=global-statement
if
_MIXED_MODULESTORE
is
None
:
if
_MIXED_MODULESTORE
is
None
:
settings
.
MODULESTORE
=
convert_module_store_setting_if_needed
(
settings
.
MODULESTORE
)
_MIXED_MODULESTORE
=
create_modulestore_instance
(
_MIXED_MODULESTORE
=
create_modulestore_instance
(
settings
.
MODULESTORE
[
'default'
][
'ENGINE'
],
settings
.
MODULESTORE
[
'default'
][
'ENGINE'
],
contentstore
(),
contentstore
(),
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_modulestore_settings.py
View file @
7503cc24
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Tests for testing the modulestore settings migration code.
Tests for testing the modulestore settings migration code.
"""
"""
import
copy
import
copy
from
django.
test
import
TestCase
from
unit
test
import
TestCase
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
...
...
lms/envs/aws.py
View file @
7503cc24
...
@@ -18,6 +18,7 @@ from logsettings import get_logger_config
...
@@ -18,6 +18,7 @@ from logsettings import get_logger_config
import
os
import
os
from
path
import
path
from
path
import
path
from
xmodule.modulestore.modulestore_settings
import
convert_module_store_setting_if_needed
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
# SERVICE_VARIANT specifies name of the variant used, which decides what JSON
# configuration files are read during startup.
# configuration files are read during startup.
...
@@ -324,7 +325,7 @@ XQUEUE_INTERFACE = AUTH_TOKENS['XQUEUE_INTERFACE']
...
@@ -324,7 +325,7 @@ XQUEUE_INTERFACE = AUTH_TOKENS['XQUEUE_INTERFACE']
# Get the MODULESTORE from auth.json, but if it doesn't exist,
# Get the MODULESTORE from auth.json, but if it doesn't exist,
# use the one from common.py
# use the one from common.py
MODULESTORE
=
AUTH_TOKENS
.
get
(
'MODULESTORE'
,
MODULESTORE
)
MODULESTORE
=
convert_module_store_setting_if_needed
(
AUTH_TOKENS
.
get
(
'MODULESTORE'
,
MODULESTORE
)
)
CONTENTSTORE
=
AUTH_TOKENS
.
get
(
'CONTENTSTORE'
,
CONTENTSTORE
)
CONTENTSTORE
=
AUTH_TOKENS
.
get
(
'CONTENTSTORE'
,
CONTENTSTORE
)
DOC_STORE_CONFIG
=
AUTH_TOKENS
.
get
(
'DOC_STORE_CONFIG'
,
DOC_STORE_CONFIG
)
DOC_STORE_CONFIG
=
AUTH_TOKENS
.
get
(
'DOC_STORE_CONFIG'
,
DOC_STORE_CONFIG
)
MONGODB_LOG
=
AUTH_TOKENS
.
get
(
'MONGODB_LOG'
,
{})
MONGODB_LOG
=
AUTH_TOKENS
.
get
(
'MONGODB_LOG'
,
{})
...
...
lms/envs/devstack.py
View file @
7503cc24
...
@@ -82,8 +82,12 @@ FEATURES['ENABLE_PAYMENT_FAKE'] = True
...
@@ -82,8 +82,12 @@ FEATURES['ENABLE_PAYMENT_FAKE'] = True
CC_PROCESSOR
[
'CyberSource'
][
'PURCHASE_ENDPOINT'
]
=
'/shoppingcart/payment_fake/'
CC_PROCESSOR
[
'CyberSource'
][
'PURCHASE_ENDPOINT'
]
=
'/shoppingcart/payment_fake/'
#####################################################################
#####################################################################
#
Lastly, s
ee if the developer has any local overrides.
#
S
ee if the developer has any local overrides.
try
:
try
:
from
.private
import
*
# pylint: disable=F0401
from
.private
import
*
# pylint: disable=F0401
except
ImportError
:
except
ImportError
:
pass
pass
#####################################################################
# Lastly, run any migrations, if needed.
MODULESTORE
=
convert_module_store_setting_if_needed
(
MODULESTORE
)
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