'Returns an (attrs, keys) tuple'

def _inspect(self, obj):

    if (obj.parent and (obj.myselector is None)):
        (t, itms) = obj.parent.items(obj.name)
        attrs = (obj._contains if t else None)
        return (attrs, itms)
    else:
        return (obj._contains, [])
