[Mailman-Users] mailman and https

Todd Freedom_Lover at pobox.com
Wed Dec 17 13:06:02 CET 2003


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

Lukas Ruf wrote:
> Thanks for the answer!  I have changed the settings.  However, when I
> try running fix_url.py it does not work.  I read the FAQ and googled
> the web...
>
> Running fix_url.py resulted in
>
> komsys-pc-ruf:/home/mailman/bin# ./withlist -l -r \
>     /home/mailman/bin/fix_url.py any -u https://www.lpr.ch -v
> Importing /home/mailman/bin/fix_url...
> Traceback (most recent call last):
>   File "./withlist", line 275, in ?
>     main()
>   File "./withlist", line 247, in main
>     mod = __import__(module)
> ImportError: No module named /home/mailman/bin/fix_url
>
> Does anyone know what I am doing wrong???

I'll take a stab at it even though I should know better than to answer
anything at this ungodly hour...

I think you just need to change your withlist invocation to:

./withlist -l -r fix_url any -u www.lpr.ch -v

I'm assuming that 'any' is a real list name.  If it's not and you just
want to run this for all lists, then the -a/--all option for withlist
might be what you want.  The reason you just use fix_url instead of
the full path to the fix_url script is that the -r option to withlist
wants it's argument in the form [module.]callable, not as a path to a
file.

I also think you don't want to use the https:// with the -u option.
You just want to use the FQDN that you would supply to
add_virtualhost() in mm_cfg.py.  And if www.lpr.ch is the
DEFAULT_URL_HOST, you don't even need to use that option at all.  You
might just have it there from experimenting to see why the withlist
call was failing.

Hopefully I haven't given you any really bad or incomplete information
here.  If so, I'll be too busy sleeping soundly now to hear you
muttering my name when it doesn't work still.  :)

- -- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
I am willing to make the mistakes if someone else is willing to learn
from them.

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

iD8DBQE/4Eaouv+09NZUB1oRAqN8AJ9+gLTyzZ0YhWlD2rv6FcvwLoi3gQCgqc6p
lCvoyrfDanW0gUR4HH/8Kdc=
=pVNv
-----END PGP SIGNATURE-----




More information about the Mailman-Users mailing list