def setOfAllCfgVal(pmgr, field, fcheck=None, fval=None):
    """
    Returns a set of all configured values for field.
    kwargs is a dict of field : value pairs that act as conditions for being
    on this list. With no kwargs we return all of the values.
    """
    vals = set()
    pmgr.updateTables()
    for cfg in pmgr.cfgs:
        d = pmgr.cfgs[cfg]
        if fcheck and fval:
            if d[fcheck] == fval:
                vals.add(d[field])
        else:
            vals.add(d[field])
    return vals