def find_gating_milestones(course_key, content_key=None, relationship=None, user=None):
 return [m for m in milestones_api.get_course_content_milestones(course_key, content_key, relationship, user) if (GATING_NAMESPACE_QUALIFIER in m.get('namespace'))]

def find_gating_milestones ( course_key , content_key = None , relationship = None , user = None ) : return [ m for m in milestones_api . get_course_content_milestones ( course_key , content_key , relationship , user ) if ( GATING_NAMESPACE_QUALIFIER in m . get ( 'namespace' ) ) ]
finds gating milestone dicts related to the given supplied parameters .