From 7c11a83faaf3a79703f6d6ab9fa2911f8abe4578 Mon Sep 17 00:00:00 2001 From: Jonathan Piacenti Date: Tue, 6 Jan 2015 21:16:09 +0000 Subject: [PATCH] Addressed nits. --- common/lib/xmodule/xmodule/library_content_module.py | 6 +++--- common/lib/xmodule/xmodule/library_tools.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/lib/xmodule/xmodule/library_content_module.py b/common/lib/xmodule/xmodule/library_content_module.py index 3b624adf90..7918c54ecc 100644 --- a/common/lib/xmodule/xmodule/library_content_module.py +++ b/common/lib/xmodule/xmodule/library_content_module.py @@ -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: diff --git a/common/lib/xmodule/xmodule/library_tools.py b/common/lib/xmodule/xmodule/library_tools.py index ad0d78a35b..94d4e0fdf4 100644 --- a/common/lib/xmodule/xmodule/library_tools.py +++ b/common/lib/xmodule/xmodule/library_tools.py @@ -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 (