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
ad57cbe9
Commit
ad57cbe9
authored
Sep 15, 2014
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of obsolete field checking
parent
f04e75db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
+0
-8
No files found.
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
View file @
ad57cbe9
...
...
@@ -2135,14 +2135,6 @@ class SplitMongoModuleStore(SplitBulkWriteMixin, ModuleStoreWriteBase):
# should this recurse down dicts and lists just in case they contain datetime?
elif
not
isinstance
(
value
,
datetime
.
datetime
):
# don't convert datetimes!
fields
[
field_name
]
=
xblock_class
.
fields
[
field_name
]
.
to_json
(
value
)
# I think these are obsolete conditions; so, I want to confirm that. Thus the warnings
if
'location'
in
fields
:
log
.
warn
(
'attempt to persist location'
)
del
fields
[
'location'
]
if
'block_type'
in
fields
:
log
.
warn
(
'attempt to persist category'
)
del
fields
[
'block_type'
]
return
fields
def
_new_structure
(
self
,
user_id
,
root_block_key
,
block_fields
=
None
,
definition_id
=
None
):
...
...
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