[LTI Provider] Documentation fix

This commit is contained in:
Phil McGachey
2015-05-27 15:37:30 -04:00
parent 1ea4b8a026
commit a7b8b3f503

View File

@@ -201,7 +201,8 @@ def render_courseware(request, lti_params):
def parse_course_and_usage_keys(course_id, usage_id):
"""
Convert course and usage ID strings into key objects. Return a tuple of
(course_key, usage_key), or (None, None) if the translation fails.
(course_key, usage_key), or throw an InvalidKeyError if the translation
fails.
"""
course_key = CourseKey.from_string(course_id)
usage_id = unquote_slashes(usage_id)