summaryrefslogtreecommitdiff
path: root/src/mailman/rules
diff options
context:
space:
mode:
authorBarry Warsaw2009-03-25 08:05:27 -0400
committerBarry Warsaw2009-03-25 08:05:27 -0400
commit9e95c42c35332a6396c4a1b53ea0b69d72f5f598 (patch)
tree26801f247cdbee68242db13f2a07558016f6ec94 /src/mailman/rules
parentd820ece5e8f78def60438857eec48514a4cd905d (diff)
downloadmailman-9e95c42c35332a6396c4a1b53ea0b69d72f5f598.tar.gz
mailman-9e95c42c35332a6396c4a1b53ea0b69d72f5f598.tar.zst
mailman-9e95c42c35332a6396c4a1b53ea0b69d72f5f598.zip
Move the Action and NewsModeration enums into their own interface files.
Diffstat (limited to 'src/mailman/rules')
-rw-r--r--src/mailman/rules/docs/news-moderation.txt6
-rw-r--r--src/mailman/rules/news_moderation.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/rules/docs/news-moderation.txt b/src/mailman/rules/docs/news-moderation.txt
index 4c095cc81..2ba6aa065 100644
--- a/src/mailman/rules/docs/news-moderation.txt
+++ b/src/mailman/rules/docs/news-moderation.txt
@@ -13,16 +13,16 @@ directly to the mailing list.
>>> print rule.name
news-moderation
-Set the list configuraiton variable to enable newsgroup moderation.
+Set the list configuration variable to enable newsgroup moderation.
- >>> from mailman.interfaces import NewsModeration
+ >>> from mailman.interfaces.nntp import NewsModeration
>>> mlist.news_moderation = NewsModeration.moderated
And now all messages will match the rule.
>>> msg = message_from_string("""\
... From: aperson@example.org
- ... Subject: An announcment
+ ... Subject: An announcement
...
... Great things are happening.
... """)
diff --git a/src/mailman/rules/news_moderation.py b/src/mailman/rules/news_moderation.py
index 3ead80086..e6c5047e9 100644
--- a/src/mailman/rules/news_moderation.py
+++ b/src/mailman/rules/news_moderation.py
@@ -28,7 +28,7 @@ __all__ = [
from zope.interface import implements
from mailman.i18n import _
-from mailman.interfaces import NewsModeration
+from mailman.interfaces.nntp import NewsModeration
from mailman.interfaces.rules import IRule