def resourcetypes(rid, model):
    '''
    Return a list of Versa types for a resource
    '''
    types = []
    for o, r, t, a in model.match(rid, VTYPE_REL):
        types.append(t)
    return types
Return a list of Versa types for a resource