def getfield(f):
    if isinstance(f, list):
        return [getfield(x) for x in f]
    else:
        return f.value
convert values from cgi.Field objects to plain values.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Mako-0.8.1/examples/wsgi/run_wsgi.py/getfield