29 Nov 2007 22:08
Patch for posting=reject
Hi again,
I know most of the development is focusing on the 2.0 branch, but I
thought I'd submit the following patch I've made to EoC 1.2.6.
I wanted a fourth option for posting, so that posts from list members
are allow through but posts from anyone else are rejected (instead of
moderated like posting=auto does). My Python is pretty limited, but
this seems to do the trick:
--- eoc.py.BAK 2007-11-29 15:57:14.421420184 -0500
+++ eoc.py 2007-11-29 16:03:54.161243272 -0500
<at> <at> -452,7 +452,7 <at> <at>
class MailingList:
- posting_opts = ["auto", "free", "moderated"]
+ posting_opts = ["auto", "free", "moderated", "reject"]
def __init__(self, mlm, name):
self.mlm = mlm
<at> <at> -963,6 +963,9 <at> <at>
})
self.send_info_message([poster], "msg-wait", {})
+ def post_reject(self, poster ):
+ self.send_info_message([poster], "msg-reject", {})
+
def should_be_moderated(self, posting, poster):
if posting == "moderated":
(Continue reading)
RSS Feed