[Mailman-Developers] Request for template substitution token

Barry Warsaw barry at python.org
Tue Oct 17 14:07:47 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Oct 16, 2006, at 9:40 PM, Lindsay Haisley wrote:

> One line of code would do this:
>
> --- HyperArch.py.orig   2006-10-16 20:25:22.000000000 -0500
> +++ HyperArch.py        2006-10-16 20:28:35.000000000 -0500
> @@ -752,6 +752,7 @@
> 	 listname = mlist.internal_name()
> 	 mbox = os.path.join(mlist.archive_dir()+'.mbox', listname+'.mbox')
> 	 d = {"listname": mlist.real_name,
> +             "internal": mlist.internal_name(),
> 	      "listinfo": mlist.GetScriptURL('listinfo', absolute=1),
> 	      "fullarch": '../%s.mbox/%s.mbox' % (listname, listname),
> 	      "size": sizeof(mbox, mlist.preferred_language),
>
> This would give us a %(internal)s name for the list in the TOC  
> index.html file
> which would be lower case and independent of administrative changes  
> to the
> displayed list name.

+1
- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iQCVAwUBRTTHk3EjvBPtnXfVAQIDZQP/etwU9L80W+LuYR1ZEc81cYUe0bcDytoO
MSyTYuFBpQeF4d0bRSxvSbofE6WJC3JuprDNRTmw615CxdcTO+00TincswSwz0f8
8TaTUBkQPLrYAbvoR5DmMgqi8rTebWAzSGp4WwTBQSrUGpPnwm1uTNTV8fzT8Lz0
y7m5YaMb1rs=
=FOq/
-----END PGP SIGNATURE-----


More information about the Mailman-Developers mailing list