summaryrefslogtreecommitdiff
path: root/Mailman/Cgi/options.py
diff options
context:
space:
mode:
authorbwarsaw2000-04-04 23:08:29 +0000
committerbwarsaw2000-04-04 23:08:29 +0000
commit85ff1df49be81af31a33f466ac7ab424fe00cad8 (patch)
treec77f3e4f3f36d16587ef8df2c400e112326b2e3c /Mailman/Cgi/options.py
parent404618a706d417c43937660543e2b48294c65d48 (diff)
downloadmailman-85ff1df49be81af31a33f466ac7ab424fe00cad8.tar.gz
mailman-85ff1df49be81af31a33f466ac7ab424fe00cad8.tar.zst
mailman-85ff1df49be81af31a33f466ac7ab424fe00cad8.zip
__init__(): Avoid the costly scan of name in Utils.list_names(). This
resulted in a huge number of useless stats (i.e. list_lists or blank listinfo could result in n**2 stats). Instead, exceptions raised in Load() are passed through the constructor, where essentially the same checks are made anyway (caught by Ted Cabeen). Load(): Several changes resulting from consistency in list-opening exceptions: - If an IOError occurs when opening the list's config.db file, transform the exception into MMUnknownListError. Also unlock the list before the exception is raised! - If the unmarshalled object is not a dictionary, raise MMCorruptListDatabaseError. Again, unlock the list first. - If unmarshalling raises an EOFError, ValueError, or TypeError, transform these into MMCorruptListDatabaseError -- after unlocking of course. IsListInitialized(): RAise MMListNotReadyError instead of MMListNotReady.
Diffstat (limited to 'Mailman/Cgi/options.py')
0 files changed, 0 insertions, 0 deletions