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
7c11a83f
Commit
7c11a83f
authored
Jan 06, 2015
by
Jonathan Piacenti
Committed by
E. Kolpakov
Jan 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addressed nits.
parent
4e5b6c8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
common/lib/xmodule/xmodule/library_content_module.py
+3
-3
common/lib/xmodule/xmodule/library_tools.py
+1
-1
No files found.
common/lib/xmodule/xmodule/library_content_module.py
View file @
7c11a83f
...
...
@@ -361,7 +361,7 @@ class LibraryContentDescriptor(LibraryContentFields, MakoModuleDescriptor, XmlDe
# See https://openedx.atlassian.net/browse/TNL-993
action_class
=
'library-update-btn'
,
# Translators: ↻ is an UTF icon symbol, no need translating it.
action_label
=
_
(
u"
↻ Update now.
"
)
action_label
=
_
(
u"
{0} Update now."
)
.
format
(
u"↻
"
)
)
)
return
False
...
...
@@ -453,8 +453,8 @@ class LibraryContentDescriptor(LibraryContentFields, MakoModuleDescriptor, XmlDe
If source_libraries has been edited, refresh_children automatically.
"""
old_source_libraries
=
LibraryList
()
.
from_json
(
old_metadata
.
get
(
'source_libraries'
,
[]))
if
set
(
old_source_libraries
)
!=
set
(
self
.
source_libraries
)
or
\
old_metadata
.
get
(
'capa_type'
,
ANY_CAPA_TYPE_VALUE
)
!=
self
.
capa_type
:
if
(
set
(
old_source_libraries
)
!=
set
(
self
.
source_libraries
)
or
old_metadata
.
get
(
'capa_type'
,
ANY_CAPA_TYPE_VALUE
)
!=
self
.
capa_type
)
:
try
:
self
.
refresh_children
(
None
,
None
,
update_db
=
False
)
# update_db=False since update_item() is about to be called anyways
except
ValueError
:
...
...
common/lib/xmodule/xmodule/library_tools.py
View file @
7c11a83f
...
...
@@ -64,7 +64,7 @@ class LibraryToolsService(object):
Returns generator containing (child_key, child) for all children matching filter criteria
"""
children
=
(
(
child_key
,
self
.
store
.
get_item
(
child_key
,
depth
=
9
))
(
child_key
,
self
.
store
.
get_item
(
child_key
,
depth
=
None
))
for
child_key
in
from_block
.
children
)
return
(
...
...
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