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
128d11e2
Commit
128d11e2
authored
Jul 25, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
line length fixes
parent
168f76ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
common/lib/xmodule/xmodule/modulestore/mongo.py
+4
-3
No files found.
common/lib/xmodule/xmodule/modulestore/mongo.py
View file @
128d11e2
...
...
@@ -13,7 +13,8 @@ from xmodule.course_module import CourseDescriptor
from
mitxmako.shortcuts
import
render_to_string
from
.
import
ModuleStore
,
Location
from
.exceptions
import
ItemNotFoundError
,
InsufficientSpecificationError
,
NoPathToItem
from
.exceptions
import
(
ItemNotFoundError
,
InsufficientSpecificationError
,
NoPathToItem
)
# TODO (cpennington): This code currently operates under the assumption that
# there is only one revision for each item. Once we start versioning inside the CMS,
...
...
@@ -155,7 +156,8 @@ class MongoModuleStore(ModuleStore):
def
_load_items
(
self
,
items
,
depth
=
0
):
"""
Load a list of xmodules from the data in items, with children cached up to specified depth
Load a list of xmodules from the data in items, with children cached up
to specified depth
"""
data_cache
=
self
.
_cache_children
(
items
,
depth
)
...
...
@@ -369,4 +371,3 @@ class MongoModuleStore(ModuleStore):
position
=
None
return
(
course_id
,
chapter
,
section
,
position
)
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