diff options
| author | bwarsaw | 2007-04-09 22:16:21 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-04-09 22:16:21 +0000 |
| commit | 7c7465b4040861e73d24650eb6dadaf625a0d3d8 (patch) | |
| tree | f7e86474ac7f3f3a48e35f8e9d42ac86f2f5c170 /Mailman/interfaces/mlistrequest.py | |
| parent | 081e590fab0f512f7ddb4a7e5c3fdc60ca154cff (diff) | |
| download | mailman-7c7465b4040861e73d24650eb6dadaf625a0d3d8.tar.gz mailman-7c7465b4040861e73d24650eb6dadaf625a0d3d8.tar.zst mailman-7c7465b4040861e73d24650eb6dadaf625a0d3d8.zip | |
Improve the way we handle avoiding InitTempVars() multiple times on an
instantiated MailList object via the mapper extension's populate_instance()
method. This based on information from the SQLAlchemy folks.
Add more useful output for LockFile debugging.
Add checks in loginit.py's emit() method (and .flush()) so that if the stream
has been closed, log messages will go to stderr. This happens under the test
suite with SQLAlchemy, because SA keeps references to the MailList objects
which it doesn't seem like we can clear before Python exits. So if say the
lock logger is at debug level, when the lock object gets cleared at Python
shutdown, the stream will have been closed by the time LockFile.__del__() gets
called. This change avoids the traceback at the expense of a little extra
stderr output.
MailList.__lock -> MailList._lock
MailList.__timestamp -> MailList._timestamp
Diffstat (limited to 'Mailman/interfaces/mlistrequest.py')
0 files changed, 0 insertions, 0 deletions
