def __call__(self, data):
    (status, value) = data

    # Report status
    self._status_fn(status)

    if status == constants.RS_NORMAL:
      return self._fn(value)

    assert value is None, \
           "Found value %r for abnormal status %s" % (value, status)

    return FormatResultError(status, self._verbose)
Returns a field's string representation.
dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/_QueryColumnFormatter.__call__