summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2001-05-31 16:30:53 +0000
committerbwarsaw2001-05-31 16:30:53 +0000
commit81bc2a444268c2d95679d317bc649546c65eabc3 (patch)
tree517284acf35678a82aebbc6e4913afed96fbe359
parentffc9e2b8aa5563aae75d7ee80bf8015811df9f32 (diff)
downloadmailman-81bc2a444268c2d95679d317bc649546c65eabc3.tar.gz
mailman-81bc2a444268c2d95679d317bc649546c65eabc3.tar.zst
mailman-81bc2a444268c2d95679d317bc649546c65eabc3.zip
-rw-r--r--Mailman/Cgi/confirm.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/Mailman/Cgi/confirm.py b/Mailman/Cgi/confirm.py
index 314a131e9..84e1acc03 100644
--- a/Mailman/Cgi/confirm.py
+++ b/Mailman/Cgi/confirm.py
@@ -40,7 +40,7 @@ def main():
if not parts:
bad_confirmation(doc)
doc.AddItem(MailmanLogo())
- print doc.Format(bgcolor='#ffffff')
+ print doc.Format()
return
listname = parts[0].lower()
@@ -49,7 +49,7 @@ def main():
except Errors.MMListError, e:
bad_confirmation(doc, _('No such list <em>%(listname)s</em>'))
doc.AddItem(MailmanLogo())
- print doc.Format(bgcolor='#ffffff')
+ print doc.Format()
syslog('error', 'No such list "%s": %s' % (listname, e))
return
@@ -76,7 +76,7 @@ def main():
initial subscription request. If your confirmation has expired,
please try to re-submit your subscription.'''))
doc.AddItem(mlist.GetMailmanFooter())
- print doc.Format(bgcolor='#ffffff')
+ print doc.Format()
mlist.Save()
finally:
mlist.Unlock()
@@ -96,10 +96,11 @@ def success(mlist, doc, op, addr, password=None, digest=None, lang=None):
# Different title based on operation performed
if op == Pending.SUBSCRIPTION:
title = _('Subscription request confirmed')
- # Current only one other operation
- else:
+ elif op == Pending.UNSUBSCRIPTION:
title = _('Removal request confirmed')
lang = mlist.GetPreferredLanguage(addr)
+ elif op == Pending.CHANGE_OF_ADDRESS:
+ title = _('Change of address confirmed')
# Use the user's preferred language
i18n.set_language(lang)
doc.set_language(lang)
@@ -112,7 +113,11 @@ def success(mlist, doc, op, addr, password=None, digest=None, lang=None):
"%(addr)s" to the %(listname)s mailing list. A separate confirmation
message will be sent to your email address, along with your password,
and other useful information and links.'''))
- else:
+ elif op == Pending.UNSUBSCRIPTION:
doc.AddItem(_('''\
You have successfully confirmed your removal request for "%(addr)s" to
the %(listname)s mailing list.'''))
+ elif op == Pending.CHANGE_OF_ADDRESS:
+ doc.AddItem(_('''\
+ You have successfully confirmed your change of address to "%(addr)s"
+ for the %(listname)s mailing list.'''))