def get_user_objects(current_user, user):

    objects = dict(USER_OBJECTS)

    for key in objects:
        if hasattr(user, key):
            objects[key]['objects'] = Object.filter_permitted(
                current_user, getattr(user, key))

    return objects
This is the exact same code as SimpleXMLRPCServer.__init__
dataset/ETHPy150Open treeio/treeio/treeio/sales/identities.py/get_user_objects--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pyopenssl/examples/SecureXMLRPCServer.py/SecureXMLRPCServer.__init__