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
0a79b30e
Commit
0a79b30e
authored
11 years ago
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delay import of xmodule packages until after sys.path fixup
parent
760027bd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
23 deletions
+8
-23
cms/djangoapps/contentstore/views/component.py
+0
-1
cms/envs/bok_choy.py
+0
-5
cms/envs/common.py
+4
-3
cms/envs/test.py
+0
-5
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
+0
-1
lms/envs/bok_choy.py
+0
-5
lms/envs/common.py
+4
-3
No files found.
cms/djangoapps/contentstore/views/component.py
View file @
0a79b30e
...
@@ -23,7 +23,6 @@ from xblock.exceptions import NoSuchHandlerError
...
@@ -23,7 +23,6 @@ from xblock.exceptions import NoSuchHandlerError
from
xblock.fields
import
Scope
from
xblock.fields
import
Scope
from
xblock.plugin
import
PluginMissingError
from
xblock.plugin
import
PluginMissingError
from
xblock.runtime
import
Mixologist
from
xblock.runtime
import
Mixologist
from
xmodule.x_module
import
prefer_xmodules
from
lms.lib.xblock.runtime
import
unquote_slashes
from
lms.lib.xblock.runtime
import
unquote_slashes
...
...
This diff is collapsed.
Click to expand it.
cms/envs/bok_choy.py
View file @
0a79b30e
...
@@ -16,8 +16,6 @@ os.environ['SERVICE_VARIANT'] = 'bok_choy'
...
@@ -16,8 +16,6 @@ os.environ['SERVICE_VARIANT'] = 'bok_choy'
os
.
environ
[
'CONFIG_ROOT'
]
=
path
(
__file__
)
.
abspath
()
.
dirname
()
#pylint: disable=E1120
os
.
environ
[
'CONFIG_ROOT'
]
=
path
(
__file__
)
.
abspath
()
.
dirname
()
#pylint: disable=E1120
from
.aws
import
*
# pylint: disable=W0401, W0614
from
.aws
import
*
# pylint: disable=W0401, W0614
from
xmodule.x_module
import
prefer_xmodules
######################### Testing overrides ####################################
######################### Testing overrides ####################################
...
@@ -49,8 +47,5 @@ for log_name, log_level in LOG_OVERRIDES:
...
@@ -49,8 +47,5 @@ for log_name, log_level in LOG_OVERRIDES:
# Use the auto_auth workflow for creating users and logging them in
# Use the auto_auth workflow for creating users and logging them in
FEATURES
[
'AUTOMATIC_AUTH_FOR_TESTING'
]
=
True
FEATURES
[
'AUTOMATIC_AUTH_FOR_TESTING'
]
=
True
# Enable XBlocks
XBLOCK_SELECT_FUNCTION
=
prefer_xmodules
# Unfortunately, we need to use debug mode to serve staticfiles
# Unfortunately, we need to use debug mode to serve staticfiles
DEBUG
=
True
DEBUG
=
True
This diff is collapsed.
Click to expand it.
cms/envs/common.py
View file @
0a79b30e
...
@@ -34,9 +34,6 @@ from path import path
...
@@ -34,9 +34,6 @@ from path import path
from
lms.lib.xblock.mixin
import
LmsBlockMixin
from
lms.lib.xblock.mixin
import
LmsBlockMixin
from
cms.lib.xblock.mixin
import
CmsBlockMixin
from
cms.lib.xblock.mixin
import
CmsBlockMixin
from
xmodule.modulestore.inheritance
import
InheritanceMixin
from
xmodule.modulestore
import
prefer_xmodules
from
xmodule.x_module
import
XModuleMixin
from
dealer.git
import
git
from
dealer.git
import
git
############################ FEATURE CONFIGURATION #############################
############################ FEATURE CONFIGURATION #############################
...
@@ -220,6 +217,10 @@ X_FRAME_OPTIONS = 'ALLOW'
...
@@ -220,6 +217,10 @@ X_FRAME_OPTIONS = 'ALLOW'
############# XBlock Configuration ##########
############# XBlock Configuration ##########
# Import after sys.path fixup
from
xmodule.modulestore.inheritance
import
InheritanceMixin
from
xmodule.x_module
import
XModuleMixin
,
prefer_xmodules
# This should be moved into an XBlock Runtime/Application object
# This should be moved into an XBlock Runtime/Application object
# once the responsibility of XBlock creation is moved out of modulestore - cpennington
# once the responsibility of XBlock creation is moved out of modulestore - cpennington
XBLOCK_MIXINS
=
(
LmsBlockMixin
,
CmsBlockMixin
,
InheritanceMixin
,
XModuleMixin
)
XBLOCK_MIXINS
=
(
LmsBlockMixin
,
CmsBlockMixin
,
InheritanceMixin
,
XModuleMixin
)
...
...
This diff is collapsed.
Click to expand it.
cms/envs/test.py
View file @
0a79b30e
...
@@ -157,11 +157,6 @@ INSTALLED_APPS += ('external_auth', )
...
@@ -157,11 +157,6 @@ INSTALLED_APPS += ('external_auth', )
filterwarnings
(
'ignore'
,
message
=
'No request passed to the backend, unable to rate-limit'
)
filterwarnings
(
'ignore'
,
message
=
'No request passed to the backend, unable to rate-limit'
)
################################# XBLOCK ######################################
from
xmodule.x_module
import
prefer_xmodules
XBLOCK_SELECT_FUNCTION
=
prefer_xmodules
################################# CELERY ######################################
################################# CELERY ######################################
CELERY_ALWAYS_EAGER
=
True
CELERY_ALWAYS_EAGER
=
True
...
...
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
View file @
0a79b30e
...
@@ -56,7 +56,6 @@ import copy
...
@@ -56,7 +56,6 @@ import copy
from
pytz
import
UTC
from
pytz
import
UTC
from
xmodule.errortracker
import
null_error_tracker
from
xmodule.errortracker
import
null_error_tracker
from
xmodule.x_module
import
prefer_xmodules
from
xmodule.modulestore.locator
import
(
from
xmodule.modulestore.locator
import
(
BlockUsageLocator
,
DefinitionLocator
,
CourseLocator
,
VersionTree
,
LocalId
,
Locator
BlockUsageLocator
,
DefinitionLocator
,
CourseLocator
,
VersionTree
,
LocalId
,
Locator
)
)
...
...
This diff is collapsed.
Click to expand it.
lms/envs/bok_choy.py
View file @
0a79b30e
...
@@ -4,8 +4,6 @@ Settings for bok choy tests
...
@@ -4,8 +4,6 @@ Settings for bok choy tests
import
os
import
os
from
path
import
path
from
path
import
path
from
xmodule.x_module
import
prefer_xmodules
CONFIG_ROOT
=
path
(
__file__
)
.
abspath
()
.
dirname
()
#pylint: disable=E1120
CONFIG_ROOT
=
path
(
__file__
)
.
abspath
()
.
dirname
()
#pylint: disable=E1120
TEST_ROOT
=
CONFIG_ROOT
.
dirname
()
.
dirname
()
/
"test_root"
TEST_ROOT
=
CONFIG_ROOT
.
dirname
()
.
dirname
()
/
"test_root"
...
@@ -60,8 +58,5 @@ LOG_OVERRIDES = [
...
@@ -60,8 +58,5 @@ LOG_OVERRIDES = [
for
log_name
,
log_level
in
LOG_OVERRIDES
:
for
log_name
,
log_level
in
LOG_OVERRIDES
:
logging
.
getLogger
(
log_name
)
.
setLevel
(
log_level
)
logging
.
getLogger
(
log_name
)
.
setLevel
(
log_level
)
# Enable XBlocks
XBLOCK_SELECT_FUNCTION
=
prefer_xmodules
# Unfortunately, we need to use debug mode to serve staticfiles
# Unfortunately, we need to use debug mode to serve staticfiles
DEBUG
=
True
DEBUG
=
True
This diff is collapsed.
Click to expand it.
lms/envs/common.py
View file @
0a79b30e
...
@@ -34,9 +34,6 @@ from path import path
...
@@ -34,9 +34,6 @@ from path import path
from
.discussionsettings
import
*
from
.discussionsettings
import
*
from
lms.lib.xblock.mixin
import
LmsBlockMixin
from
lms.lib.xblock.mixin
import
LmsBlockMixin
from
xmodule.modulestore.inheritance
import
InheritanceMixin
from
xmodule.modulestore
import
prefer_xmodules
from
xmodule.x_module
import
XModuleMixin
################################### FEATURES ###################################
################################### FEATURES ###################################
# The display name of the platform to be used in templates/emails/etc.
# The display name of the platform to be used in templates/emails/etc.
...
@@ -433,6 +430,10 @@ DOC_STORE_CONFIG = {
...
@@ -433,6 +430,10 @@ DOC_STORE_CONFIG = {
############# XBlock Configuration ##########
############# XBlock Configuration ##########
# Import after sys.path fixup
from
xmodule.modulestore.inheritance
import
InheritanceMixin
from
xmodule.x_module
import
XModuleMixin
,
prefer_xmodules
# This should be moved into an XBlock Runtime/Application object
# This should be moved into an XBlock Runtime/Application object
# once the responsibility of XBlock creation is moved out of modulestore - cpennington
# once the responsibility of XBlock creation is moved out of modulestore - cpennington
XBLOCK_MIXINS
=
(
LmsBlockMixin
,
InheritanceMixin
,
XModuleMixin
)
XBLOCK_MIXINS
=
(
LmsBlockMixin
,
InheritanceMixin
,
XModuleMixin
)
...
...
This diff is collapsed.
Click to expand it.
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