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
f5bae8d8
Commit
f5bae8d8
authored
Mar 19, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce pep8 warnings.
parent
b5a587d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
common/lib/xmodule/xmodule/modulestore/mongo.py
+5
-3
No files found.
common/lib/xmodule/xmodule/modulestore/mongo.py
View file @
f5bae8d8
...
...
@@ -8,7 +8,7 @@ from collections import namedtuple
from
fs.osfs
import
OSFS
from
itertools
import
repeat
from
path
import
path
from
datetime
import
datetime
,
timedelta
from
datetime
import
datetime
from
importlib
import
import_module
from
xmodule.errortracker
import
null_error_tracker
,
exc_info_to_str
...
...
@@ -493,10 +493,12 @@ class MongoModuleStore(ModuleStoreBase):
try
:
source_item
=
self
.
collection
.
find_one
(
location_to_query
(
source
))
source_item
[
'_id'
]
=
Location
(
location
)
.
dict
()
self
.
collection
.
insert
(
source_item
,
self
.
collection
.
insert
(
source_item
,
# Must include this to avoid the django debug toolbar (which defines the deprecated "safe=False")
# from overriding our default value set in the init method.
safe
=
self
.
collection
.
safe
)
safe
=
self
.
collection
.
safe
)
item
=
self
.
_load_items
([
source_item
])[
0
]
# VS[compat] cdodge: This is a hack because static_tabs also have references from the course module, so
...
...
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