def register_factory(factory, from_protocol, to_protocol):
    manager = get_global_adaptation_manager()
    return manager.register_factory(factory, from_protocol, to_protocol)
Register an adapter factory.
dataset/ETHPy150Open enthought/traits/traits/adaptation/adaptation_manager.py/register_factory