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
dfad0dec
Commit
dfad0dec
authored
Jul 11, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disambiguating name in XMLModuleStore definition
parent
e39e454f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
common/lib/xmodule/xmodule/modulestore/xml.py
+7
-7
No files found.
common/lib/xmodule/xmodule/modulestore/xml.py
View file @
dfad0dec
...
...
@@ -82,9 +82,9 @@ class XMLModuleStore(ModuleStore):
course
=
course_dir
class
ImportSystem
(
XMLParsingSystem
,
MakoDescriptorSystem
):
def
__init__
(
self
,
module
store
):
def
__init__
(
self
,
xml
store
):
"""
module
store: the XMLModuleStore to store the loaded modules in
xml
store: the XMLModuleStore to store the loaded modules in
"""
self
.
unnamed_modules
=
0
self
.
used_slugs
=
set
()
...
...
@@ -110,18 +110,18 @@ class XMLModuleStore(ModuleStore):
# log.debug('-> slug=%s' % slug)
xml_data
.
set
(
'slug'
,
slug
)
module
=
XModuleDescriptor
.
load_from_xml
(
etree
.
tostring
(
xml_data
),
self
,
org
,
course
,
module
store
.
default_class
)
module
=
XModuleDescriptor
.
load_from_xml
(
etree
.
tostring
(
xml_data
),
self
,
org
,
course
,
xml
store
.
default_class
)
log
.
debug
(
'==> importing module location
%
s'
%
repr
(
module
.
location
))
module
store
.
modules
[
module
.
location
]
=
module
xml
store
.
modules
[
module
.
location
]
=
module
if
module
store
.
eager
:
if
xml
store
.
eager
:
module
.
get_children
()
return
module
system_kwargs
=
dict
(
render_template
=
lambda
:
''
,
load_item
=
module
store
.
get_item
,
resources_fs
=
OSFS
(
module
store
.
data_dir
/
course_dir
),
load_item
=
xml
store
.
get_item
,
resources_fs
=
OSFS
(
xml
store
.
data_dir
/
course_dir
),
process_xml
=
process_xml
)
MakoDescriptorSystem
.
__init__
(
self
,
**
system_kwargs
)
...
...
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