def validate_external_location(uri):
 if (not uri):
  return False
 scheme = urlparse.urlparse(uri).scheme
 return ((scheme in store_api.get_known_schemes()) and (scheme not in RESTRICTED_URI_SCHEMAS))

def validate_external_location ( uri ) : if ( not uri ) : return False scheme = urlparse . urlparse ( uri ) . scheme return ( ( scheme in store_api . get_known_schemes ( ) ) and ( scheme not in RESTRICTED_URI_SCHEMAS ) )
validate if uri of external location are supported .