diff options
| author | Barry Warsaw | 2007-12-30 02:47:45 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2007-12-30 02:47:45 -0500 |
| commit | 5b4bb22feca4d520afef44d1c472807e020d17b5 (patch) | |
| tree | 8d85431b8d129fad6c29dabd4d03c2eabe8a11d7 /Mailman/interfaces | |
| parent | 66ffab7c0d56b8144a80045fac3a7dab036a597f (diff) | |
| download | mailman-5b4bb22feca4d520afef44d1c472807e020d17b5.tar.gz mailman-5b4bb22feca4d520afef44d1c472807e020d17b5.tar.zst mailman-5b4bb22feca4d520afef44d1c472807e020d17b5.zip | |
Add three new rules and their associated doctests.
- A rule that checks to see if the sender is a moderated member.
- A rule that checks to see if the sender is a non-member.
- A rule that checks to see if the message has no (or an empty) Subject.
Give IMembers (and the associated database implementation) an `is_moderated`
flag.
Diffstat (limited to 'Mailman/interfaces')
| -rw-r--r-- | Mailman/interfaces/member.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/interfaces/member.py b/Mailman/interfaces/member.py index 18f0b034e..8fc410a77 100644 --- a/Mailman/interfaces/member.py +++ b/Mailman/interfaces/member.py @@ -78,6 +78,9 @@ class IMember(Interface): role = Attribute( """The role of this membership.""") + is_moderated = Attribute( + """True if the membership is moderated, otherwise False.""") + def unsubscribe(): """Unsubscribe (and delete) this member from the mailing list.""" |
