def add_or_update_enrollment_attr(user_id, course_id, attributes):
 for attribute in attributes:
  _ENROLLMENT_ATTRIBUTES.append({'namespace': attribute['namespace'], 'name': attribute['name'], 'value': attribute['value']})

def add_or_update_enrollment_attr ( user_id , course_id , attributes ) : for attribute in attributes : _ENROLLMENT_ATTRIBUTES . append ( { 'namespace' : attribute [ 'namespace' ] , 'name' : attribute [ 'name' ] , 'value' : attribute [ 'value' ] } )
set enrollment attributes for the enrollment of given user in the course provided .