[Mailman-Users] Python for dummies?

Todd Freedom_Lover at pobox.com
Fri Sep 19 06:55:22 CEST 2003


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

Paul H Byerly wrote:
>      I want to add to the "list of lists page" a direct link to the 
> archives for each list.  So I hacked listinfo.py and added
>
> Link(mlist.GetScriptURL('private'), Bold(mlist.real_name)),
>
>      This looks good, and when the link is clicked everthing seems right, 
> but the URL is .../mailman/private/listname not 
> .../mailman/private/listname/ and the links to the archives by thread, 
> subject etc do not work as they lack the listname in the URL.  I can not 
> find a way to add the trailing slash to the code that generates the URL.

What about this:

    Link(mlist.GetBaseArchiveURL(), Bold('Archives'))

If you wanted to add a / onto the link (which was not needed with
GetBaseArchiveURL() in the quick test I did), you could do this:

    Link(mlist.GetBaseArchiveURL() + '/', Bold('Archives'))

- -- 
Todd              OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
============================================================================
When the people fear their government, there is tyranny; when the
government fears the people, there is liberty.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iD8DBQE/aow6uv+09NZUB1oRAm1zAJ4ktr7XIm2gxDJBN7KlwsQW2JquywCg+SEO
PnugTbmruRQ3N09abHDFFKE=
=Ixvt
-----END PGP SIGNATURE-----




More information about the Mailman-Users mailing list