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
17925f3c
Commit
17925f3c
authored
Jun 18, 2014
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure all split methods consuming Keys check that key is fully specified
STUD-1654
parent
7a452b62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
+2
-2
No files found.
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
View file @
17925f3c
...
...
@@ -349,7 +349,8 @@ class SplitMongoModuleStore(ModuleStoreWriteBase):
def
has_course
(
self
,
course_id
,
ignore_case
=
False
):
'''
Does this course exist in this modulestore.
Does this course exist in this modulestore. This method does not verify that the branch &/or
version in the course_id exists. Use get_course_index_info to check that.
'''
assert
(
isinstance
(
course_id
,
CourseLocator
))
course_entry
=
self
.
db_connection
.
get_course_index
(
course_id
,
ignore_case
)
...
...
@@ -1298,7 +1299,6 @@ class SplitMongoModuleStore(ModuleStoreWriteBase):
"""
self
.
db_connection
.
update_course_index
(
updated_index_entry
)
# TODO impl delete_all_versions
def
delete_item
(
self
,
usage_locator
,
user_id
,
delete_all_versions
=
False
,
delete_children
=
False
,
force
=
False
):
"""
Delete the block or tree rooted at block (if delete_children) and any references w/in the course to the block
...
...
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