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
5260473c
Commit
5260473c
authored
Nov 09, 2017
by
noraiz-anwar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quality fix
parent
cc0de386
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
cms/djangoapps/contentstore/views/course.py
+3
-2
common/lib/xmodule/xmodule/library_content_module.py
+1
-1
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
+1
-1
No files found.
cms/djangoapps/contentstore/views/course.py
View file @
5260473c
...
...
@@ -504,7 +504,7 @@ def course_listing(request):
user
=
request
.
user
start_time
=
time
.
time
()
libraries
=
_accessible_libraries_iter
(
request
.
user
,
org
)
if
LIBRARIES_ENABLED
else
[]
log
.
info
(
"_accessible_libraries_iter completed in [
%
f]"
,
(
time
.
time
()
-
start_time
))
log
.
info
(
"_accessible_libraries_iter completed in [
%
f]"
,
(
time
.
time
()
-
start_time
))
def
format_in_process_course_view
(
uca
):
"""
...
...
@@ -554,7 +554,7 @@ def course_listing(request):
u'archived_courses'
:
archived_courses
,
u'in_process_course_actions'
:
in_process_course_actions
,
u'libraries_enabled'
:
LIBRARIES_ENABLED
,
u'libraries'
:
formated_libs
,
u'libraries'
:
formated_libs
,
u'show_new_library_button'
:
get_library_creator_status
(
user
),
u'user'
:
user
,
u'request_course_creator_url'
:
reverse
(
'request_course_creator'
),
...
...
@@ -567,6 +567,7 @@ def course_listing(request):
return
response
def
_get_rerun_link_for_item
(
course_key
):
""" Returns the rerun link for the given course key. """
return
reverse_course_url
(
'course_rerun_handler'
,
course_key
)
...
...
common/lib/xmodule/xmodule/library_content_module.py
View file @
5260473c
...
...
@@ -641,12 +641,12 @@ class LibraryContentDescriptor(LibraryContentFields, MakoModuleDescriptor, XmlDe
xml_object
.
set
(
field_name
,
unicode
(
field
.
read_from
(
self
)))
return
xml_object
class
LibrarySummary
(
object
):
"""
A library summary object which contains the fields required for library listing on studio.
"""
def
__init__
(
self
,
library_locator
,
display_name
):
"""
Initialize LibrarySummary
...
...
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
View file @
5260473c
...
...
@@ -1081,7 +1081,7 @@ class SplitMongoModuleStore(SplitBulkWriteMixin, ModuleStoreWriteBase):
block_data
for
block_key
,
block_data
in
entry
[
'blocks'
]
.
items
()
if
block_key
.
type
==
"library"
]
]
if
not
library_block
:
raise
ItemNotFoundError
...
...
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