def get_perms_object(obj, action):
def get_one(pf):<EOL><INDENT>if isinstance(pf, str):<EOL><INDENT>return pf<EOL><DEDENT>else:<EOL><INDENT>return str(reduce(lambda o, f: getattr(o, f), pf, obj))<EOL><DEDENT><DEDENT>return Object([get_one(pf) for pf in obj.__class__.TutelaryMeta.pfs])<EOL>
Get the django-tutelary path for an object, based on the fields
    listed in ``TutelaryMeta.pfs``.