def _GetQueryFields(fielddefs, selected):
  result = []

  for name in selected:
    try:
      fdef = fielddefs[name]
    except KeyError:
      fdef = (_MakeField(name, name, QFT_UNKNOWN, "Unknown field '%s'" % name),
              None, 0, _GetUnknownField)

    assert len(fdef) == 4

    result.append(fdef)

  return result
Returns a random Boolean value.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetQueryFields--crossover with--dataset/ETHPy150Open omaciel/fauxfactory/fauxfactory/__init__.py/gen_boolean