def get_or_bust(data_dict, keys):
 if isinstance(keys, basestring):
  keys = [keys]
 import ckan.logic.schema as schema
 schema = schema.create_schema_for_required_keys(keys)
 (data_dict, errors) = _validate(data_dict, schema)
 if errors:
  raise ValidationError(errors)
 values = [data_dict[key] for key in keys]
 if (len(values) == 1):
  return values[0]
 return tuple(values)

def get_or_bust ( data_dict , keys ) : if isinstance ( keys , basestring ) : keys = [ keys ] import ckan . logic . schema as schema schema = schema . create_schema_for_required_keys ( keys ) ( data_dict , errors ) = _validate ( data_dict , schema ) if errors : raise ValidationError ( errors ) values = [ data_dict [ key ] for key in keys ] if ( len ( values ) == 1 ) : return values [ 0 ] return tuple ( values )
return the value(s) from the given data_dict for the given key(s) .