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
13bb3bf0
Commit
13bb3bf0
authored
Aug 19, 2013
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pylint
parent
39b64655
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/lib/xmodule/xmodule/modulestore/xml_importer.py
+2
-2
No files found.
common/lib/xmodule/xmodule/modulestore/xml_importer.py
View file @
13bb3bf0
...
@@ -80,7 +80,7 @@ def import_from_xml(store, data_dir, course_dirs=None,
...
@@ -80,7 +80,7 @@ def import_from_xml(store, data_dir, course_dirs=None,
after import off disk. We do this remapping as a post-processing step because there's logic in the importing which
after import off disk. We do this remapping as a post-processing step because there's logic in the importing which
expects a 'url_name' as an identifier to where things are on disk e.g. ../policies/<url_name>/policy.json as well as metadata keys in
expects a 'url_name' as an identifier to where things are on disk e.g. ../policies/<url_name>/policy.json as well as metadata keys in
the policy.json. so we need to keep the original url_name during import
the policy.json. so we need to keep the original url_name during import
do_import_static: if False, then static files are not imported into the static content store. This can be employed for courses which
do_import_static: if False, then static files are not imported into the static content store. This can be employed for courses which
have substantial unchanging static content, which is to inefficient to import every time the course is loaded.
have substantial unchanging static content, which is to inefficient to import every time the course is loaded.
Static content for some courses may also be served directly by nginx, instead of going through django.
Static content for some courses may also be served directly by nginx, instead of going through django.
...
@@ -162,7 +162,7 @@ def import_from_xml(store, data_dir, course_dirs=None,
...
@@ -162,7 +162,7 @@ def import_from_xml(store, data_dir, course_dirs=None,
log
.
debug
(
'Skipping import of static content, since do_import_static={0}'
.
format
(
do_import_static
))
log
.
debug
(
'Skipping import of static content, since do_import_static={0}'
.
format
(
do_import_static
))
# no matter what do_import_static is, import "static_import" directory
# no matter what do_import_static is, import "static_import" directory
#
# This is needed because the "about" pages (eg "overview") are loaded via load_extra_content, and
# This is needed because the "about" pages (eg "overview") are loaded via load_extra_content, and
# do not inherit the lms metadata from the course module, and thus do not get "static_content_store"
# do not inherit the lms metadata from the course module, and thus do not get "static_content_store"
# properly defined. Static content referenced in those extra pages thus need to come through the
# properly defined. Static content referenced in those extra pages thus need to come through the
...
...
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