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
7d206e02
Commit
7d206e02
authored
Apr 26, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove comment which is no longer valid as well as debug log messages
parent
bbea8eb9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
cms/djangoapps/contentstore/views.py
+0
-6
common/lib/xmodule/xmodule/modulestore/mongo.py
+0
-1
No files found.
cms/djangoapps/contentstore/views.py
View file @
7d206e02
...
...
@@ -615,16 +615,10 @@ def delete_item(request):
delete_children
=
request
.
POST
.
get
(
'delete_children'
,
False
)
delete_all_versions
=
request
.
POST
.
get
(
'delete_all_versions'
,
False
)
logging
.
debug
(
'delete_all_versions = {0}'
.
format
(
delete_all_versions
))
store
=
modulestore
()
item
=
store
.
get_item
(
item_location
)
# @TODO: this probably leaves draft items dangling. My preferance would be for the semantic to be
# if item.location.revision=None, then delete both draft and published version
# if caller wants to only delete the draft than the caller should put item.location.revision='draft'
if
delete_children
:
_xmodule_recurse
(
item
,
lambda
i
:
store
.
delete_item
(
i
.
location
,
delete_all_versions
))
else
:
...
...
common/lib/xmodule/xmodule/modulestore/mongo.py
View file @
7d206e02
...
...
@@ -701,7 +701,6 @@ class MongoModuleStore(ModuleStoreBase):
location: Something that can be passed to Location
delete_all_versions: is here because the DraftMongoModuleStore needs it and we need to keep the interface the same. It is unused.
"""
logging
.
debug
(
'delete_all_versions = {0}'
.
format
(
delete_all_versions
))
# VS[compat] cdodge: This is a hack because static_tabs also have references from the course module, so
# if we add one then we need to also add it to the policy information (i.e. metadata)
# we should remove this once we can break this reference from the course to static tabs
...
...
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