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
913c601a
Commit
913c601a
authored
Jul 19, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move default set_many impl to xblock
parent
549ef5d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
10 deletions
+1
-10
common/lib/xmodule/xmodule/modulestore/mongo/base.py
+0
-9
requirements/edx/github.txt
+1
-1
No files found.
common/lib/xmodule/xmodule/modulestore/mongo/base.py
View file @
913c601a
...
@@ -105,15 +105,6 @@ class MongoKeyValueStore(KeyValueStore):
...
@@ -105,15 +105,6 @@ class MongoKeyValueStore(KeyValueStore):
else
:
else
:
raise
InvalidScopeError
(
key
.
scope
)
raise
InvalidScopeError
(
key
.
scope
)
def
set_many
(
self
,
update_dict
):
"""set_many method. Implementations should accept an `update_dict` of
key-value pairs, and set all the `keys` to the given `value`s."""
# `set` simply updates an in-memory db, rather than calling down to a real db,
# as mongo bulk save is handled elsewhere. A future improvement would be to pull
# the mongo-specific bulk save logic into this method.
for
key
,
value
in
update_dict
.
iteritems
():
self
.
set
(
key
,
value
)
def
delete
(
self
,
key
):
def
delete
(
self
,
key
):
if
key
.
scope
==
Scope
.
children
:
if
key
.
scope
==
Scope
.
children
:
self
.
_children
=
[]
self
.
_children
=
[]
...
...
requirements/edx/github.txt
View file @
913c601a
...
@@ -8,6 +8,6 @@
...
@@ -8,6 +8,6 @@
-e git://github.com/eventbrite/zendesk.git@d53fe0e81b623f084e91776bcf6369f8b7b63879#egg=zendesk
-e git://github.com/eventbrite/zendesk.git@d53fe0e81b623f084e91776bcf6369f8b7b63879#egg=zendesk
# Our libraries:
# Our libraries:
-e git+https://github.com/edx/XBlock.git@
3974e999fe853a37dfa6fadf0611289434349409
#egg=XBlock
-e git+https://github.com/edx/XBlock.git@
b697bebd45deebd0f868613fab6722a0460ca0c1
#egg=XBlock
-e git+https://github.com/edx/codejail.git@c08967fb44d1bcdb259d3ec58812e3ac592539c2#egg=codejail
-e git+https://github.com/edx/codejail.git@c08967fb44d1bcdb259d3ec58812e3ac592539c2#egg=codejail
-e git+https://github.com/edx/diff-cover.git@v0.1.3#egg=diff_cover
-e git+https://github.com/edx/diff-cover.git@v0.1.3#egg=diff_cover
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