[Mailman-Users] Template Token Hell

Lindsay Haisley fmouse-mailman at fmp.com
Tue Oct 17 00:41:16 CEST 2006

Thus spake Mark Sapiro on Mon, Oct 16, 2006 at 04:07:58PM CDT
> >In particular, I'm trying to find out if there's a lower case version of the 
> >list name available in archtocnombox.html and archtoc.html (where 
> >%(listname)s is the "pretty" name selected by the list administrator), and 
> >what other substitution tokens are available in the context of these two 
> >templates.  
> In general, the %(key_word)s substitutions are specific to any given
> template that uses them and the only ones defined for a specific
> template are the ones that appear in the default template.
> It's pretty easy to patch the code to pass additional key_word:value
> items to substitute in the template, but it does require patching the
> code. See
> <http://mail.python.org/pipermail/mailman-users/2006-September/053399.html>
> for more info.

After I wrote the above, I looked at the code for quick_maketext() and saw 
where I could do this.  My PHP hack does the case-crunching OK for my purposes, 
but the stuff I'm putting together for Mailman/Namazu integration ought to be 
able to work without doing anything but modifying the templates.

I probably ought to file a feature request that any template which might need 
it should support a keyword which contains the results of a call to 
mlist.internal_name() - in particular archtoc.html and archtocnombox.html :-)

Lindsay Haisley       | "Fighting against human |     PGP public key
FMP Computer Services |    creativity is like   |      available at
512-259-1190          |    trying to eradicate  | <http://pubkeys.fmp.com>
http://www.fmp.com    |        dandelions"      |
                      |      (Pamela Jones)     |

More information about the Mailman-Users mailing list