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
2509308c
Commit
2509308c
authored
Dec 21, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove reference to shared_state_key
parent
265a2e76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
10 deletions
+1
-10
lms/djangoapps/courseware/models.py
+1
-10
No files found.
lms/djangoapps/courseware/models.py
View file @
2509308c
...
...
@@ -282,16 +282,7 @@ class StudentModuleCache(object):
descriptor_filter is a function that accepts a descriptor and return wether the StudentModule
should be cached
'''
keys
=
[]
for
descriptor
in
descriptors
:
if
descriptor
.
stores_state
:
keys
.
append
(
descriptor
.
location
.
url
())
shared_state_key
=
getattr
(
descriptor
,
'shared_state_key'
,
None
)
if
shared_state_key
is
not
None
:
keys
.
append
(
shared_state_key
)
return
keys
return
[
descriptor
.
location
.
url
()
for
descriptor
in
descriptors
if
descriptor
.
stores_state
]
def
lookup
(
self
,
course_id
,
module_type
,
module_state_key
):
'''
...
...
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