summaryrefslogtreecommitdiff
path: root/Mailman/interfaces
diff options
context:
space:
mode:
authorBarry Warsaw2007-08-05 08:42:16 -0400
committerBarry Warsaw2007-08-05 08:42:16 -0400
commite0abca9fbdde530f7517396677c87f19c86bc0c6 (patch)
tree129da7df5fad55cb4be4d61b2f5815c0c68d1f33 /Mailman/interfaces
parent2999c404a486cb0c7bd76407501e0a6b775c148a (diff)
downloadmailman-e0abca9fbdde530f7517396677c87f19c86bc0c6.tar.gz
mailman-e0abca9fbdde530f7517396677c87f19c86bc0c6.tar.zst
mailman-e0abca9fbdde530f7517396677c87f19c86bc0c6.zip
Added a doctest for the Mailman.app.create module.
BadListNameError is gone. Use InvalidEmailAddress instead. Move owner registration from bin/newlist to Mailman/app/create.py, but do not verified owner email addresses here. Eventually we'll hook in the IRegistrar stuff for unverified owner addresses. IStyleManager.register() verifies that its registering an IStyle. Added IStyleManager.unregister(), along with updated interfaces and doctests. Clean up all styles except the default one in the system documentation test harness.
Diffstat (limited to 'Mailman/interfaces')
-rw-r--r--Mailman/interfaces/styles.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mailman/interfaces/styles.py b/Mailman/interfaces/styles.py
index 7b4207bae..aa139fde8 100644
--- a/Mailman/interfaces/styles.py
+++ b/Mailman/interfaces/styles.py
@@ -84,3 +84,10 @@ class IStyleManager(Interface):
:raises DuplicateStyleError: if a style with the same name was already
registered.
"""
+
+ def unregister(style):
+ """Unregister the style.
+
+ :param style: an IStyle.
+ :raises KeyError: If the style's name is not currently registered.
+ """