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
4625036d
Commit
4625036d
authored
May 20, 2015
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Standardize on triple double-quotes for docstrings
parent
827a8f81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lms/djangoapps/courseware/model_data.py
+4
-4
No files found.
lms/djangoapps/courseware/model_data.py
View file @
4625036d
...
...
@@ -703,7 +703,7 @@ class FieldDataCache(object):
for a module and its descendants
"""
def
__init__
(
self
,
descriptors
,
course_id
,
user
,
select_for_update
=
False
,
asides
=
None
):
'''
"""
Find any courseware.models objects that are needed by any descriptor
in descriptors. Attempts to minimize the number of queries to the database.
Note: Only modules that have store_state = True or have shared
...
...
@@ -715,7 +715,7 @@ class FieldDataCache(object):
user: The user for which to cache data
select_for_update: Ignored
asides: The list of aside types to load, or None to prefetch no asides.
'''
"""
if
asides
is
None
:
self
.
asides
=
[]
else
:
...
...
@@ -823,7 +823,7 @@ class FieldDataCache(object):
@contract
(
key
=
DjangoKeyValueStore
.
Key
)
def
get
(
self
,
key
):
'''
"""
Load the field value specified by `key`.
Arguments:
...
...
@@ -831,7 +831,7 @@ class FieldDataCache(object):
Returns: The found value
Raises: KeyError if key isn't found in the cache
'''
"""
if
key
.
scope
.
user
==
UserScope
.
ONE
and
not
self
.
user
.
is_anonymous
():
# If we're getting user data, we expect that the key matches the
...
...
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