def xblock_local_resource_url(block, uri):
 xblock_class = getattr(block.__class__, 'unmixed_class', block.__class__)
 if (settings.PIPELINE_ENABLED or (not settings.REQUIRE_DEBUG)):
  return staticfiles_storage.url('xblock/resources/{package_name}/{path}'.format(package_name=xblock_class.__module__, path=uri))
 else:
  return reverse('xblock_resource_url', kwargs={'block_type': block.scope_ids.block_type, 'uri': uri})

def xblock_local_resource_url ( block , uri ) : xblock_class = getattr ( block . __class__ , 'unmixed_class' , block . __class__ ) if ( settings . PIPELINE_ENABLED or ( not settings . REQUIRE_DEBUG ) ) : return staticfiles_storage . url ( 'xblock/resources/{package_name}/{path}' . format ( package_name = xblock_class . __module__ , path = uri ) ) else : return reverse ( 'xblock_resource_url' , kwargs = { 'block_type' : block . scope_ids . block_type , 'uri' : uri } )
returns the url for an xblocks local resource .