[Mailman-Users] Changes to archive pages

Todd Freedom_Lover at pobox.com
Thu May 1 14:51:18 CEST 2003

Hash: SHA1

Paul H Byerly wrote:
> Richard Barrett  wrote:
>> I believe you can have list-specific templates by putting them in the 
>> directory  $prefix/lists/<listname>/<language>/
>> The same issue applies regarding running mailmanctl restart after 
>> creating/changing templates in such directories.
>     That is my understanding, but it does not seem to work for this 
> file.  I copied it there and made changes earlier, but when I ran the 
> restart it was the changes in the template file, not the changes in the 
> local file that I saw.  It's in the same location as 'listinfo.html' and 
> 'options.html' so I'm sure I got it right.

This got me curious so I looked at the code to see if I could figure out why
it wasn't working.  The archive code in question is located in
Mailman/Archiver/HyperArch.py.  The function used is quick_maketext().  This
basically calls Utils.maketext() to do the templating.  However,
quick_maketext() sets mlist to None.  When mlist is None, Utils.maketext
doesn't look in any of the list directories for template files.  It only
checks templates/site/<lang> and templates/<lang>.  So the best you can so
is modify the template in 'site' like you have done.

Maybe someone more familiar with the mailman code (hi Barry :) can explain
why this is so.  It might be a performance thing.  There could be discussion
of it in the developers list archive, I haven't checked there.

- -- 
Todd              OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
The ultimate result of shielding men from the effects of folly is to fill
the world with fools.
    -- Herbert Spencer

Version: GnuPG v1.2.1 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.


More information about the Mailman-Users mailing list