[Mailman-Users] Re: Templates

Richard Barrett r.barrett at openinfo.co.uk
Tue Jul 1 20:01:14 CEST 2003


At 18:27 01/07/2003, Timothy Arnold wrote:
>That's what I thought... Anyone recommend a good python book? >:)
>
>I presume this is the same for the subscriber options? I am trying to make 
>as much of the mailman interface that the end user (subscriber) sees Becta 
>branded as possible.

If you are using MM 2.1.2 then you will find a much of the html has been 
abstracted to the $prefix/templates directory language subdirectories and 
their brethren.

Although pages are being generated by MM scripts these now tend to populate 
template files rather than generate HTML from scratch.

You can set up/change these templates by language as follows (from the 
comments in $prefix/Mailman/Utils.py):

<quote>
     # When looking for a template in a specific language, there are 4 places
     # that are searched, in this order:
     #
     # 1. the list-specific language directory
     #    lists/<listname>/<language>
     #
     # 2. the domain-specific language directory
     #    templates/<list.host_name>/<language>
     #
     # 3. the site-wide language directory
     #    templates/site/<language>
     #
     # 4. the global default language directory
     #    templates/<language>
     #
     # The first match found stops the search.  In this way, you can specialize
     # templates at the desired level, or, if you use only the default
     # templates, you don't need to change anything.  You should never modify
     # files in the templates/<language> subdirectory, since Mailman will
     # overwrite these when you upgrade.  That's what the templates/site
     # language directories are for.
</quote>

Take a look at these template files and evaluate the template search 
hierarchy before concluding that hacking the Python code is the only way 
forward.

>Thanks,
>Timothy
>
>-----Original Message-----
>From: Paul H Byerly [mailto:paul at thcwd.com]
>Sent: 01 July 2003 16:56
>To: mailman-users at python.org
>Subject: [Mailman-Users] Re: Templates
>
>
>       That is what I get for answering a question when I should not yet 
> be awake.  I belive that page is generated by a cgi script
>(mailman/cgi-bin/listinfo), which is going to make editing a real problem.
>
>At 09:37 AM 7/1/2003, you wrote:
> >That edits the listinfo for the list, not the list of lists...
> >
> >Thanks,
> >Timothy.
> >
> >-----Original Message-----
> >From: Paul H Byerly [mailto:paul at thcwd.com]
> >Sent: 01 July 2003 15:07
> >To: mailman-users at python.org
> >Subject: [Mailman-Users] Re: Templates
> >
> >
> >"Timothy Arnold" wrote:
> > >The problem I am having at the moment is trying to figure out how to
> > >edit the main listinfo page mailman.becta.org.uk/mailman/listinfo and
> > >the
> > end >user subscription page. We would like to make the site as branded
> > as
> > >possible (except for admin interface). Does anyone know how to
> > >achieve this?
> >
> >       From the admin page click "Edit public HTML pages on the right
> > side
> > a little above the Logout link.
> >
> >
> ><>< Paul
>
><>< Paul
>
>
>------------------------------------------------------
>Mailman-Users mailing list
>Mailman-Users at python.org http://mail.python.org/mailman/listinfo/mailman-users
>Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
>Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
>
>This message was sent to: timothy.arnold at becta.org.uk Unsubscribe or 
>change your options at 
>http://mail.python.org/mailman/options/mailman-users/timothy.arnold%40becta.org.uk
>
>
>**********************************************************************
>This email and any files transmitted with it are confidential and
>intended solely for the use of the individual or entity to whom they
>are addressed. If you have received this email in error please notify
>the system manager.
>This footnote also confirms that this email message has been swept by
>MIMEsweeper for the presence of computer viruses.
>www.mimesweeper.com
>**********************************************************************
>
>
>------------------------------------------------------
>Mailman-Users mailing list
>Mailman-Users at python.org
>http://mail.python.org/mailman/listinfo/mailman-users
>Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
>Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
>
>This message was sent to: r.barrett at openinfo.co.uk
>Unsubscribe or change your options at
>http://mail.python.org/mailman/options/mailman-users/r.barrett%40openinfo.co.uk

------------------------------------------------------------------------------
Richard Barrett                                      http://www.openinfo.co.uk





More information about the Mailman-Users mailing list