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
4c82f35e
Commit
4c82f35e
authored
Jul 18, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put data_dir into metadata for all XModuleDescriptors loaded from xml
parent
5f86fcfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
common/lib/xmodule/xmodule/modulestore/xml.py
+2
-1
No files found.
common/lib/xmodule/xmodule/modulestore/xml.py
View file @
4c82f35e
...
...
@@ -129,6 +129,8 @@ class XMLModuleStore(ModuleStore):
module
=
XModuleDescriptor
.
load_from_xml
(
etree
.
tostring
(
xml_data
),
self
,
org
,
course
,
xmlstore
.
default_class
)
log
.
debug
(
'==> importing module location
%
s'
%
repr
(
module
.
location
))
module
.
metadata
[
'data_dir'
]
=
course_dir
xmlstore
.
modules
[
module
.
location
]
=
module
if
xmlstore
.
eager
:
...
...
@@ -145,7 +147,6 @@ class XMLModuleStore(ModuleStore):
XMLParsingSystem
.
__init__
(
self
,
**
system_kwargs
)
course_descriptor
=
ImportSystem
(
self
)
.
process_xml
(
etree
.
tostring
(
course_data
))
course_descriptor
.
metadata
[
'data_dir'
]
=
course_dir
log
.
debug
(
'========> Done with course import'
)
return
course_descriptor
...
...
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