summaryrefslogtreecommitdiff
path: root/Mailman/rules/emergency.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-01-21 00:26:55 -0500
committerBarry Warsaw2008-01-21 00:26:55 -0500
commit4460aad316db5c8af9b84c392e67441acaac9d72 (patch)
treeeabc714fdc3c9aff16ca48cfbc5f7974af01e1c1 /Mailman/rules/emergency.py
parent2efcac1ef273b407668826c587c15a0fd8ec3d3c (diff)
downloadmailman-4460aad316db5c8af9b84c392e67441acaac9d72.tar.gz
mailman-4460aad316db5c8af9b84c392e67441acaac9d72.tar.zst
mailman-4460aad316db5c8af9b84c392e67441acaac9d72.zip
More updates to rules and chains, especially by adding additional tests.
- Remove the Emergency.py handler. This is now covered by the emergency.py rule. - Remove the hold.txt doctest. This is now covered by the chains.txt and emergency.txt doctests. - Added a chains.txt doctest. - Extend the pending db to handle list values, although only lists that contain nothing but strings. - Rename the 'adminapproved' message metadata key (for the emergency rule) to 'moderator_approved'. Also, backport a change to the Decorate handler where message metadata on the 'decoration-data' key ca be used in the header and footer.
Diffstat (limited to '')
-rw-r--r--Mailman/rules/emergency.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/rules/emergency.py b/Mailman/rules/emergency.py
index e51612940..0e6aa97b4 100644
--- a/Mailman/rules/emergency.py
+++ b/Mailman/rules/emergency.py
@@ -39,4 +39,4 @@ the list administrator.""")
def check(self, mlist, msg, msgdata):
"""See `IRule`."""
- return mlist.emergency and not msgdata.get('adminapproved')
+ return mlist.emergency and not msgdata.get('moderator_approved')