def get_attrlist(entry, attr):
    """
    Returns the whole list of values for an attribute in the given entry.

    If the attribute does not exist in the entry, return `None`.
    """
    a = entry.get(attr)
    if a is not None:
        return a
    else:
        return []
