summaryrefslogtreecommitdiff
path: root/Mailman/ListAdmin.py
diff options
context:
space:
mode:
authorbwarsaw2000-06-28 21:48:12 +0000
committerbwarsaw2000-06-28 21:48:12 +0000
commit9bc6bff2bb99bf8b3ef2ed6f97b53662a14d55b1 (patch)
treee9747df4b7267c0dbb2405722c9ebf3063a24dcb /Mailman/ListAdmin.py
parent1714c89a42ce78fafd40d7b48bba8d5043a2dc99 (diff)
downloadmailman-9bc6bff2bb99bf8b3ef2ed6f97b53662a14d55b1.tar.gz
mailman-9bc6bff2bb99bf8b3ef2ed6f97b53662a14d55b1.tar.zst
mailman-9bc6bff2bb99bf8b3ef2ed6f97b53662a14d55b1.zip
__handlesubscription(): When subscribing the addr, ApprovedAddMember()
will end up calling SaveRequestsDb() which closes the database. The hack is to re-open the database so that the del in HandleRequest() doesn't fail.
Diffstat (limited to 'Mailman/ListAdmin.py')
-rw-r--r--Mailman/ListAdmin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py
index caba19cdf..13a7a7f36 100644
--- a/Mailman/ListAdmin.py
+++ b/Mailman/ListAdmin.py
@@ -308,6 +308,9 @@ class ListAdmin:
# subscribe
assert value == mm_cfg.SUBSCRIBE
self.ApprovedAddMember(addr, password, digest)
+ # TBD: disgusting hack: ApprovedAddMember() can end up closing the
+ # request database.
+ self.__opendb()
return REMOVE
def __refuse(self, request, recip, comment, origmsg=None):