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
718328e4
Commit
718328e4
authored
Sep 30, 2013
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of all mention of XModuleDescriptor.
parent
a1d464ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
common/lib/xmodule/xmodule/modulestore/xml.py
+6
-7
No files found.
common/lib/xmodule/xmodule/modulestore/xml.py
View file @
718328e4
...
...
@@ -17,13 +17,12 @@ from xmodule.error_module import ErrorDescriptor
from
xmodule.errortracker
import
make_error_tracker
,
exc_info_to_str
from
xmodule.course_module
import
CourseDescriptor
from
xmodule.mako_module
import
MakoDescriptorSystem
from
xmodule.x_module
import
XM
oduleDescriptor
,
XM
LParsingSystem
from
xmodule.x_module
import
XMLParsingSystem
from
xmodule.html_module
import
HtmlDescriptor
from
xblock.core
import
XBlock
from
xblock.fields
import
ScopeIds
from
xblock.field_data
import
DictFieldData
from
xblock.plugin
import
PluginMissingError
from
.
import
ModuleStoreBase
,
Location
,
XML_MODULESTORE_TYPE
...
...
@@ -65,7 +64,7 @@ class ImportSystem(XMLParsingSystem, MakoDescriptorSystem):
self
.
load_error_modules
=
load_error_modules
def
process_xml
(
xml
):
"""Takes an xml string, and returns a X
ModuleDescriptor
created from
"""Takes an xml string, and returns a X
Block
created from
that xml.
"""
...
...
@@ -312,8 +311,8 @@ class XMLModuleStore(ModuleStoreBase):
super
(
XMLModuleStore
,
self
)
.
__init__
(
**
kwargs
)
self
.
data_dir
=
path
(
data_dir
)
self
.
modules
=
defaultdict
(
dict
)
# course_id -> dict(location -> X
ModuleDescriptor
)
self
.
courses
=
{}
# course_dir -> X
ModuleDescriptor
for the course
self
.
modules
=
defaultdict
(
dict
)
# course_id -> dict(location -> X
Block
)
self
.
courses
=
{}
# course_dir -> X
Block
for the course
self
.
errored_courses
=
{}
# course_dir -> errorlog, for dirs that failed to load
self
.
load_error_modules
=
load_error_modules
...
...
@@ -534,7 +533,7 @@ class XMLModuleStore(ModuleStoreBase):
def
get_instance
(
self
,
course_id
,
location
,
depth
=
0
):
"""
Returns an X
ModuleDescriptor
instance for the item at
Returns an X
Block
instance for the item at
location, with the policy for course_id. (In case two xml
dirs have different content at the same location, return the
one for this course_id.)
...
...
@@ -562,7 +561,7 @@ class XMLModuleStore(ModuleStoreBase):
def
get_item
(
self
,
location
,
depth
=
0
):
"""
Returns an X
ModuleDescriptor
instance for the item at location.
Returns an X
Block
instance for the item at location.
If any segment of the location is None except revision, raises
xmodule.modulestore.exceptions.InsufficientSpecificationError
...
...
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