def get_override_for_ccx(ccx, block, name, default=None):
 overrides = _get_overrides_for_ccx(ccx)
 clean_ccx_key = _clean_ccx_key(block.location)
 block_overrides = overrides.get(clean_ccx_key, {})
 block_overrides['course_edit_method'] = None
 if (name in block_overrides):
  try:
   return block.fields[name].from_json(block_overrides[name])
  except KeyError:
   return block_overrides[name]
 else:
  return default

def get_override_for_ccx ( ccx , block , name , default = None ) : overrides = _get_overrides_for_ccx ( ccx ) clean_ccx_key = _clean_ccx_key ( block . location ) block_overrides = overrides . get ( clean_ccx_key , { } ) block_overrides [ 'course_edit_method' ] = None if ( name in block_overrides ) : try : return block . fields [ name ] . from_json ( block_overrides [ name ] ) except KeyError : return block_overrides [ name ] else : return default
gets the value of the overridden field for the ccx .