[Mailman-Users] Mailman 2.1.5 - Customize Look and Feel

Russell Mann tech at khouse.org
Wed Aug 11 18:45:33 CEST 2004


 
> 	Sorry, guy.  This kind of thing gets back to the same 
> sorts of issues regarding complete and total customization 
> such as discussed in 
> <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq03.018.htp>
> and
> <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq03.
> 037.htp>.
> 

Here's what I did, for those of you who want a better response than "No."

>From the templates/en/* directory, copy whichever files of these that are
not already in:

lists/<list_name>/en

admlogin.html
listinfo.html
options.html
subscribe.html

You can edit these with your look and feel.

Then in Mailman/HTMLFormatter.py, around line 551 find lines like this:

class HTMLFormatter:
    def GetMailmanFooter(self):

Between the "def" and return line you can modify however you'd like.  I just
deleted everything, plugged in my "footer" template like this:

        footer_results = _("""\
<a bunch of html here>
""")
        return footer_results

Remember that in python % (percent sign) means something, so replace all
your %'s with %%.  For example, I have some "table width=100%" tags, which
had to be changed to "table width=100%%" to work.

I'm sure there are other variables, but one I wanted to change was the
header color, so in 
Mailman/mm_cfg.py

I added this:

WEB_HEADER_COLOR = '#e3ddc8'

I also edited Mailman/htmlformat.py, around line 768.  I commented out the
lines that added body tags, and put my own header in like this:

  header_results = _("""\

<header tags>
<body tag>
<html stuff>
""")

            output.append('%s' %  header_results)

I'm not sure exactly what this affected, but it helped in my situation.

-Russell Mann





More information about the Mailman-Users mailing list