def inject_coursetalk_keys_into_context(context, course_key):
 show_coursetalk_widget = models.CourseTalkWidgetConfiguration.is_enabled()
 if show_coursetalk_widget:
  context[u'show_coursetalk_widget'] = True
  context[u'platform_key'] = models.CourseTalkWidgetConfiguration.get_platform_key()
  context[u'course_review_key'] = get_coursetalk_course_key(course_key)

def inject_coursetalk_keys_into_context ( context , course_key ) : show_coursetalk_widget = models . CourseTalkWidgetConfiguration . is_enabled ( ) if show_coursetalk_widget : context [ u'show_coursetalk_widget' ] = True context [ u'platform_key' ] = models . CourseTalkWidgetConfiguration . get_platform_key ( ) context [ u'course_review_key' ] = get_coursetalk_course_key ( course_key )
set params to view context based on course_key and coursetalkwidgetconfiguration .