• Kirill Smelkov's avatar
    bigfile/zodb: Monkey-patch for ZODB.Connection to support callback on .open() · 64d1f40b
    Kirill Smelkov authored
    ZODB.Connection has support for calling callbacks on .close() but not on
    .open() . We'll need to hook into both Connection open/close process in the
    next patch (for _ZBigFileH to stay in sync with Connection state).
    
    NOTE
    
    on-open  callbacks are setup once and fire many times on every open,
    on-close callbacks are setup once and fire only once on next close.
    
    The reason for this is that on-close callbacks are useful for scheduling
    current connection cleanup, after its processing is done. But on-open
    callback is for future connection usage, which is generally not related
    to current connection.
    
    /cc @jm, @vpelletier
    64d1f40b
Name
Last commit
Last update
3rdparty Loading commit data...
bigarray Loading commit data...
bigfile Loading commit data...
demo Loading commit data...
include/wendelin Loading commit data...
lib Loading commit data...
t Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
CHANGES Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...
wendelin.py Loading commit data...