Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d549194b
Commit
d549194b
authored
7 years ago
by
Jeremy Bowman
Browse files
Options
Downloads
Patches
Plain Diff
PLAT-1775 Move help tokens configuration from startup to settings
parent
c0c740ad
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
cms/envs/common.py
+4
-0
4 additions, 0 deletions
cms/envs/common.py
cms/startup.py
+0
-5
0 additions, 5 deletions
cms/startup.py
lms/envs/common.py
+4
-0
4 additions, 0 deletions
lms/envs/common.py
lms/startup.py
+0
-5
0 additions, 5 deletions
lms/startup.py
with
8 additions
and
10 deletions
cms/envs/common.py
+
4
−
0
View file @
d549194b
...
...
@@ -133,6 +133,7 @@ from openedx.core.djangoapps.theming.helpers_dirs import (
)
from
openedx.core.lib.license
import
LicenseMixin
from
openedx.core.lib.derived
import
derived
,
derived_dict_entry
from
openedx.core.release
import
doc_version
############################ FEATURE CONFIGURATION #############################
...
...
@@ -1382,6 +1383,9 @@ AFFILIATE_COOKIE_NAME = 'affiliate_id'
############## Settings for Studio Context Sensitive Help ##############
HELP_TOKENS_INI_FILE
=
REPO_ROOT
/
"
cms
"
/
"
envs
"
/
"
help_tokens.ini
"
HELP_TOKENS_LANGUAGE_CODE
=
lambda
settings
:
settings
.
LANGUAGE_CODE
HELP_TOKENS_VERSION
=
lambda
settings
:
doc_version
()
derived
(
'
HELP_TOKENS_LANGUAGE_CODE
'
,
'
HELP_TOKENS_VERSION
'
)
# This is required for the migrations in oauth_dispatch.models
# otherwise it fails saying this attribute is not present in Settings
...
...
This diff is collapsed.
Click to expand it.
cms/startup.py
+
0
−
5
View file @
d549194b
...
...
@@ -15,7 +15,6 @@ from openedx.core.lib.django_startup import autostartup
settings
.
INSTALLED_APPS
# pylint: disable=pointless-statement
from
openedx.core.lib.xblock_utils
import
xblock_local_resource_url
from
openedx.core.release
import
doc_version
from
startup_configurations.validate_config
import
validate_cms_config
...
...
@@ -41,10 +40,6 @@ def run():
xmodule
.
x_module
.
descriptor_global_handler_url
=
cms
.
lib
.
xblock
.
runtime
.
handler_url
xmodule
.
x_module
.
descriptor_global_local_resource_url
=
xblock_local_resource_url
# Set the version of docs that help-tokens will go to.
settings
.
HELP_TOKENS_LANGUAGE_CODE
=
settings
.
LANGUAGE_CODE
settings
.
HELP_TOKENS_VERSION
=
doc_version
()
# validate configurations on startup
validate_cms_config
(
settings
)
...
...
This diff is collapsed.
Click to expand it.
lms/envs/common.py
+
4
−
0
View file @
d549194b
...
...
@@ -44,6 +44,7 @@ from openedx.core.djangoapps.theming.helpers_dirs import (
get_theme_base_dirs_from_settings
)
from
openedx.core.lib.derived
import
derived
,
derived_dict_entry
from
openedx.core.release
import
doc_version
from
xmodule.modulestore.modulestore_settings
import
update_module_store_settings
from
xmodule.modulestore.edit_info
import
EditInfoMixin
from
lms.djangoapps.lms_xblock.mixin
import
LmsBlockMixin
...
...
@@ -3295,10 +3296,13 @@ REDIRECT_CACHE_KEY_PREFIX = 'redirects'
############## Settings for LMS Context Sensitive Help ##############
HELP_TOKENS_INI_FILE
=
REPO_ROOT
/
"
lms
"
/
"
envs
"
/
"
help_tokens.ini
"
HELP_TOKENS_LANGUAGE_CODE
=
lambda
settings
:
settings
.
LANGUAGE_CODE
HELP_TOKENS_VERSION
=
lambda
settings
:
doc_version
()
HELP_TOKENS_BOOKS
=
{
'
learner
'
:
'
http://edx.readthedocs.io/projects/open-edx-learner-guide
'
,
'
course_author
'
:
'
http://edx.readthedocs.io/projects/open-edx-building-and-running-a-course
'
,
}
derived
(
'
HELP_TOKENS_LANGUAGE_CODE
'
,
'
HELP_TOKENS_VERSION
'
)
############## OPEN EDX ENTERPRISE SERVICE CONFIGURATION ######################
# The Open edX Enterprise service is currently hosted via the LMS container/process.
...
...
This diff is collapsed.
Click to expand it.
lms/startup.py
+
0
−
5
View file @
d549194b
...
...
@@ -12,7 +12,6 @@ from django.conf import settings
settings
.
INSTALLED_APPS
# pylint: disable=pointless-statement
from
openedx.core.lib.django_startup
import
autostartup
from
openedx.core.release
import
doc_version
from
openedx.core.djangoapps.monkey_patch
import
django_db_models_options
...
...
@@ -73,10 +72,6 @@ def run():
xmodule
.
x_module
.
descriptor_global_handler_url
=
lms_xblock
.
runtime
.
handler_url
xmodule
.
x_module
.
descriptor_global_local_resource_url
=
lms_xblock
.
runtime
.
local_resource_url
# Set the version of docs that help-tokens will go to.
settings
.
HELP_TOKENS_LANGUAGE_CODE
=
settings
.
LANGUAGE_CODE
settings
.
HELP_TOKENS_VERSION
=
doc_version
()
# validate configurations on startup
validate_lms_config
(
settings
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment