• Jeremy Hylton's avatar
    Add a level of redirection to change registration for persistent objects. · 81d666f2
    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.
    81d666f2
cPersistence.c 21 KB