diff options
| author | bwarsaw | 2007-03-30 05:09:36 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-03-30 05:09:36 +0000 |
| commit | 0caacf05262875f4e1791fd88d45910ac66dfd74 (patch) | |
| tree | e09cdfeec157ca5b8e4d5c8dbff7a9088d044799 /Mailman/LockFile.py | |
| parent | 92188309a4648d23abb97f8dd2c6c924d9ea24b1 (diff) | |
| download | mailman-0caacf05262875f4e1791fd88d45910ac66dfd74.tar.gz mailman-0caacf05262875f4e1791fd88d45910ac66dfd74.tar.zst mailman-0caacf05262875f4e1791fd88d45910ac66dfd74.zip | |
api_lock(): When locking the MailList object, tell the SQLAlchemy session to
expire the object. This way, when the MailList attributes are next accessed,
the ORM will reload them from the database, getting any new values possibly
set in other processes.
This works better than trying to use always_refresh=True on the mapper, or
trying to do a reload() because both of those approaches blow away locks. I'm
not sure why this, but I suspect that it's because the identity map is handing
us back a different object, rather than invalidating the object's attributes.
Diffstat (limited to 'Mailman/LockFile.py')
0 files changed, 0 insertions, 0 deletions
