Reproduce latest PR fix for develop

This commit is contained in:
Griatch 2020-10-12 21:11:08 +02:00
parent 6b62fc9067
commit fcb6f19287

View file

@ -555,6 +555,8 @@ def inside(accessing_obj, accessed_obj, *args, **kwargs):
want also nested objects to pass the lock, use the `insiderecursive`
lockfunc.
"""
if hasattr(accessed_obj, "obj"):
accessed_obj = accessed_obj.obj
return accessing_obj.location == accessed_obj