From 48362529720c4e5759bbc3b707aedfdd92255ce5 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Wed, 21 May 2014 14:39:28 -0400 Subject: [PATCH] Make the arguments to translate_location_to_course_locator more specific --- common/lib/xmodule/xmodule/modulestore/loc_mapper_store.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/lib/xmodule/xmodule/modulestore/loc_mapper_store.py b/common/lib/xmodule/xmodule/modulestore/loc_mapper_store.py index 03cf5c8456..0f04298685 100644 --- a/common/lib/xmodule/xmodule/modulestore/loc_mapper_store.py +++ b/common/lib/xmodule/xmodule/modulestore/loc_mapper_store.py @@ -312,14 +312,11 @@ class LocMapperStore(object): Used when you only need the CourseLocator and not a full BlockUsageLocator. Probably only useful for get_items which wildcards name or category. - :param course_key: a CourseKey or a UsageKey + :param course_key: a CourseKey :param published: a boolean representing whether or not we should return the published or draft version Returns a Courselocator """ - if isinstance(course_key, UsageKey): - course_key = course_key.course_key - cached = self._get_course_locator_from_cache(course_key, published) if cached: return cached