From 37929439605729bc5029c7cd7d0bd9d6e66a5703 Mon Sep 17 00:00:00 2001 From: muzaffaryousaf Date: Wed, 17 Jun 2015 17:13:11 +0500 Subject: [PATCH] Fixing the failing tests for XMLModule. --- openedx/core/djangoapps/bookmarks/services.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/bookmarks/services.py b/openedx/core/djangoapps/bookmarks/services.py index 6ef23df226..5bca61e64c 100644 --- a/openedx/core/djangoapps/bookmarks/services.py +++ b/openedx/core/djangoapps/bookmarks/services.py @@ -41,8 +41,9 @@ class BookmarksService(object): course_key (CourseKey): course_key of the course whose bookmarks cache should be returned. fetch (Bool): if the bookmarks should be fetched and cached if they already aren't. """ - if hasattr(modulestore(), 'fill_in_run'): - course_key = modulestore().fill_in_run(course_key) + store = modulestore() + if hasattr(store, 'fill_in_run'): + course_key = store.fill_in_run(course_key) if course_key.run is None: return [] cache_key = CACHE_KEY_TEMPLATE.format(self._user.id, course_key)