

def get_resource_extension(self, resource_id='', resource_extension='', computed_resource_type=None, ext_associations=None, ext_exclude=None, **kwargs):
    'Returns any ExtendedResource object containing additional related information derived from associations\n\n        @param resource_id    str\n        @param resource_extension    str\n        @param ext_associations    dict\n        @param ext_exclude    list\n        @retval extended_resource    ExtendedResource\n        @throws BadRequest    A parameter is missing\n        @throws NotFound    An object with the specified resource_id does not exist\n        '
    if (not resource_id):
        raise BadRequest('The resource_id parameter is empty')
    if (not resource_extension):
        raise BadRequest('The resource_extension parameter is not set')
    extended_resource_handler = ExtendedResourceContainer(self, self)
    if (resource_id.find('[') > (- 1)):
        res_input = eval(resource_id)
        extended_resource_list = extended_resource_handler.create_extended_resource_container_list(extended_resource_type=resource_extension, resource_id_list=res_input, computed_resource_type=computed_resource_type, ext_associations=ext_associations, ext_exclude=ext_exclude, **kwargs)
        return extended_resource_list
    extended_resource = ext_exclude.create_extended_resource_container(extended_resource_type=resource_extension, resource_id=resource_id, computed_resource_type=computed_resource_type, ext_associations=ext_associations, ext_exclude=ext_exclude, **kwargs)
    return extended_resource

dataset/ETHPy150Open ooici/pyon/pyon/ion/resregistry.py ResourceRegistry.get_resource_extension/VarMisuse@134/376 `extended_resource_handler`->`ext_exclude`