summaryrefslogtreecommitdiff
path: root/src/mailman/rules/moderation.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-14 02:28:13 -0400
committerBarry Warsaw2012-03-14 02:28:13 -0400
commiteb509dc0466f34f63ab6dcf159de2f9137cb3fdb (patch)
tree2c6727277c034acc411cbccfcc0c50e14e53bd3c /src/mailman/rules/moderation.py
parentbcc42e2201c7172848185e5675a7b79e3d28aa0f (diff)
downloadmailman-eb509dc0466f34f63ab6dcf159de2f9137cb3fdb.tar.gz
mailman-eb509dc0466f34f63ab6dcf159de2f9137cb3fdb.tar.zst
mailman-eb509dc0466f34f63ab6dcf159de2f9137cb3fdb.zip
Diffstat (limited to 'src/mailman/rules/moderation.py')
-rw-r--r--src/mailman/rules/moderation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/rules/moderation.py b/src/mailman/rules/moderation.py
index bcec47cba..cb27d89d8 100644
--- a/src/mailman/rules/moderation.py
+++ b/src/mailman/rules/moderation.py
@@ -57,7 +57,7 @@ class MemberModeration:
elif action is not None:
# We must stringify the moderation action so that it can be
# stored in the pending request table.
- msgdata['moderation_action'] = action.enumname
+ msgdata['moderation_action'] = action.name
msgdata['moderation_sender'] = sender
return True
# The sender is not a member so this rule does not match.
@@ -98,7 +98,7 @@ class NonmemberModeration:
elif action is not None:
# We must stringify the moderation action so that it can be
# stored in the pending request table.
- msgdata['moderation_action'] = action.enumname
+ msgdata['moderation_action'] = action.name
msgdata['moderation_sender'] = sender
return True
# The sender must be a member, so this rule does not match.