[Mailman-Users] changing the error html page

Ben Burnett benwa at ocentrix.net
Fri May 4 21:53:16 CEST 2001


Are you doing this as a Malman installation admin or as a
list admin? Do you want your changes to be sitewide, or per
list?

You can't do this as a list admin.  And, you can't do this
per list as an installation admin either.  If you want to
make sitewide changes to the error page you can do this by
editing the file $prefix/Mailman/Cgi/subscribe.py

I did this at
http://www.ridersconnection.com/

by changing the definition of the "main" function.  I added
a logo to the top of the page by adding two lines to the top
of the function as shown below

---code---
def main():
    doc = Document()

# lets see if we can insert an image at the top of this page
    doc.AddItem('<img
src="/mailmanlogos/riders_connection_header.png" width="750"
height="115" alt="Ocentrix Riders\' Connection" 
border="0">')
---more code---
(replace &lt; and &gt; above with < and > respectively if
you're viewing this in plain text)

A lot of the pages output by the scripts in
$prefix/Mailman/Cgi/ are generated by the python code in the
scripts themselves.  If you take a look at
$prefix/Mailman/htmlformat.py you'll see a lot of functions
that are used for this purpose.  Perhaps you could use these
to make the changes that you'd like to see.

-Ben




More information about the Mailman-Users mailing list