diff -Pur mailman-2.0-dist/Mailman/Cgi/options.py mailman-2.0/Mailman/Cgi/options.py --- mailman-2.0-dist/Mailman/Cgi/options.py Thu Sep 28 19:05:05 2000 +++ mailman-2.0/Mailman/Cgi/options.py Thu Dec 14 21:43:44 2000 @@ -41,9 +41,11 @@ doc = HeadlessDocument() parts = Utils.GetPathPieces() if not parts or len(parts) < 2: - doc.AddItem(Header(2, "Error")) - doc.AddItem(Bold("Invalid options to CGI script.")) - print doc.Format() + errordoc = Document() + errordoc.SetTitle("Mailman Error") + errordoc.AddItem(Header(2, "Error")) + errordoc.AddItem(Bold("Invalid options to CGI script.")) + print errordoc.Format(bgcolor=mm_cfg.BACKGD_COLOR) return # get the list and user's name @@ -53,9 +55,11 @@ try: mlist = MailList.MailList(listname, lock=0) except Errors.MMListError, e: - doc.AddItem(Header(2, "Error")) - doc.AddItem(Bold('No such list %s' % listname)) - print doc.Format() + errordoc = Document() + errordoc.SetTitle("Mailman Error") + errordoc.AddItem(Header(2, "Error")) + errordoc.AddItem(Bold('No such list %s' % listname)) + print errordoc.Format(bgcolor=mm_cfg.BACKGD_COLOR) syslog('error', 'No such list "%s": %s\n' % (listname, e)) return @@ -64,10 +68,12 @@ if not mlist.members.has_key(user) and \ not mlist.digest_members.has_key(user): # then - doc.AddItem(Header(2, "Error")) - doc.AddItem(Bold("%s: No such member %s." % (listname, `user`))) - doc.AddItem(mlist.GetMailmanFooter()) - print doc.Format() + errordoc = Document() + errordoc.SetTitle("Mailman Error") + errordoc.AddItem(Header(2, "Error")) + errordoc.AddItem(Bold("%s: No such member %s." % (listname, `user`))) + errordoc.AddItem(mlist.GetMailmanFooter()) + print errordoc.Format(bgcolor=mm_cfg.BACKGD_COLOR) return # find the case preserved email address (the one the user subscribed with)