Get the django-tutelary path for an object, based on the fields
    listed in ``TutelaryMeta.pfs``.

def get_perms_object(obj, action):
    """Get the django-tutelary path for an object, based on the fields
    listed in ``TutelaryMeta.pfs``.

    """
    def get_one(pf):
        if isinstance(pf, str):
            return pf
        else:
            return str(reduce(lambda o, f: getattr(o, f), pf, obj))
    return Object([get_one(pf) for pf in obj.__class__.TutelaryMeta.pfs])