def locattr(accessing_obj, accessed_obj, *args, **kwargs):
    if hasattr(accessing_obj, "obj"):
        accessing_obj = accessing_obj.obj
    if hasattr(accessing_obj, "location"):
        return attr(accessing_obj.location, accessed_obj, *args, **kwargs)
Creates a sub-group for any items contained in a specified list.
dataset/ETHPy150Open evennia/evennia/evennia/locks/lockfuncs.py/locattr--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/group.py/ShadowGroup._flush_items