diff options
| author | bwarsaw | 2006-09-24 20:43:56 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-09-24 20:43:56 +0000 |
| commit | 99a4f0ef16e6dfddafbd396896afb97821528f16 (patch) | |
| tree | 0cabc1a41a6532de1ad63a1b43bd2e941150d0ec /Mailman/Errors.py | |
| parent | 3da41d89a8c827383b2256b965fa1be8b179b9cd (diff) | |
| download | mailman-99a4f0ef16e6dfddafbd396896afb97821528f16.tar.gz mailman-99a4f0ef16e6dfddafbd396896afb97821528f16.tar.zst mailman-99a4f0ef16e6dfddafbd396896afb97821528f16.zip | |
As Mark discovered, we need to load the configuration in the driver script for
the web u/i to work. This also fixes the use of Utils.list_names() in the
list and admin overviews. This API now returns a set, but the CGIs want to
sort them, so we need to turn them back into lists.
This change also elaborates an exception so that the list name is reported.
Diffstat (limited to 'Mailman/Errors.py')
| -rw-r--r-- | Mailman/Errors.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Mailman/Errors.py b/Mailman/Errors.py index a0fdd8c52..26333a688 100644 --- a/Mailman/Errors.py +++ b/Mailman/Errors.py @@ -28,7 +28,14 @@ class MailmanException(Exception): # Exceptions for problems related to opening a list class MMListError(MailmanException): pass -class MMUnknownListError(MMListError): pass + +class MMUnknownListError(MMListError): + def __init__(self, listname=None): + self._listname = listname + + def __str__(self): + return self._listname + class MMCorruptListDatabaseError(MMListError): pass class MMListNotReadyError(MMListError): pass class MMListAlreadyExistsError(MMListError): pass |
