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
ed584a9a
Commit
ed584a9a
authored
Aug 15, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pep8 violations
parent
c6cde6a7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
cms/djangoapps/contentstore/views/preview.py
+1
-1
common/lib/xmodule/xmodule/modulestore/__init__.py
+1
-1
common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py
+6
-5
common/lib/xmodule/xmodule/modulestore/xml.py
+1
-1
No files found.
cms/djangoapps/contentstore/views/preview.py
View file @
ed584a9a
...
...
@@ -160,7 +160,7 @@ def load_preview_module(request, preview_id, descriptor):
module
.
get_html
=
replace_static_urls
(
module
.
get_html
,
getattr
(
module
,
'data_dir'
,
module
.
location
.
course
),
course_id
=
module
.
location
.
org
+
'/'
+
module
.
location
.
course
+
'/BOGUS_RUN_REPLACE_WHEN_AVAILABLE'
course_id
=
module
.
location
.
org
+
'/'
+
module
.
location
.
course
+
'/BOGUS_RUN_REPLACE_WHEN_AVAILABLE'
)
module
.
get_html
=
save_module
(
...
...
common/lib/xmodule/xmodule/modulestore/__init__.py
View file @
ed584a9a
...
...
@@ -395,7 +395,7 @@ class ModuleStore(object):
def
get_modulestore_type
(
self
,
course_id
):
"""
Returns a type which identifies which modulestore is servicing the given
Returns a type which identifies which modulestore is servicing the given
course_id. The return can be either "xml" (for XML based courses) or "mongo" for MongoDB backed courses
"""
raise
NotImplementedError
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_split_modulestore.py
View file @
ed584a9a
...
...
@@ -298,14 +298,15 @@ class SplitModuleItemTests(SplitModuleTest):
# in published course
locator
=
BlockUsageLocator
(
course_id
=
"wonderful"
,
usage_id
=
"head23456"
,
branch
=
'draft'
)
self
.
assertTrue
(
modulestore
()
.
has_item
(
locator
.
course_id
,
BlockUsageLocator
(
course_id
=
locator
.
course_id
,
usage_id
=
locator
.
usage_id
,
branch
=
'published'
)),
"couldn't find in 23456"
)
self
.
assertTrue
(
modulestore
()
.
has_item
(
locator
.
course_id
,
BlockUsageLocator
(
course_id
=
locator
.
course_id
,
usage_id
=
locator
.
usage_id
,
branch
=
'published'
)
),
"couldn't find in 23456"
)
locator
.
branch
=
'published'
self
.
assertTrue
(
modulestore
()
.
has_item
(
course_id
,
locator
),
"couldn't find in 23456"
)
def
test_negative_has_item
(
self
):
# negative tests--not found
# no such course or block
...
...
common/lib/xmodule/xmodule/modulestore/xml.py
View file @
ed584a9a
...
...
@@ -604,7 +604,7 @@ class XMLModuleStore(ModuleStoreBase):
def
get_modulestore_type
(
self
,
course_id
):
"""
Returns a type which identifies which modulestore is servicing the given
Returns a type which identifies which modulestore is servicing the given
course_id. The return can be either "xml" (for XML based courses) or "mongo" for MongoDB backed courses
"""
return
XML_MODULESTORE_TYPE
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