• Jeremy Hylton's avatar
    Add a level of redirection to change registration for persistent objects. · c1c964b8
    Jeremy Hylton authored
    changed() in cPersistence.c now calls the jar's register() method.
    Connection's register() method just calls get_transaction().register().
    
    This redirection would allow specialized Connection's to change the
    default policy on how the transaction manager is selected without
    hacking the Transaction module.
    
    The cPersistence.c code is based on _PyPersist_RegisterDataManager()
    from the Zope3 code.
    c1c964b8
cPersistence.c 21 KB