@classmethod
def attendee2values(cls, attendee):
    """
        Convert a attendee object into values for create or write
        """
    res = {}
    if attendee.value.lower().startswith('mailto:'):
        res['email'] = attendee.value[7:]
    else:
        res['email'] = attendee.value
    res['status'] = ''
    if hasattr(attendee, 'partstat_param'):
        if attendee.partstat_param.lower() in dict(cls.status.selection):
            res['status'] = attendee.partstat_param.lower()
    res['attendee'] = attendee.serialize()
    return res
