[Mailman-Developers] Determining if a user or list has moderation
Jeff Kunzelman (DHL)
Jeff.Kunzelman at dhl.com
Fri Apr 13 19:58:12 CEST 2007
This answered my question, thanks a lot!
Is there an api anywhere that has a full list of all the objects you
can use in mailman?
From: Mark Sapiro [mailto:msapiro at value.net]
Sent: Thursday, April 12, 2007 9:44 PM
To: Jeff Kunzelman (DHL); mailman-developers at python.org
Subject: Re: [Mailman-Developers] Determining if a user or list has
Jeff Kunzelman (DHL) wrote:
>However when I run the command:
>withlist -q -r checkModerated.py jww_test
>I get the following error:
>Traceback (most recent call last):
> File "/home/mailman/bin/withlist", line 297, in ?
> File "/home/mailman/bin/withlist", line 269, in main
> func = getattr(mod, callable)
>AttributeError: 'module' object has no attribute 'py'
The help for withlist says
I realize this is cryptic, but in your case (module file name =
checkModerated.py; function name/callable = list_moderated) it means the
withlist command needs to be
withlist -q -r checkModerated.list_moderated jww_test
Note that the 'module name' does not include the .py suffix of the file
name. Alternatively, if you named the file list_moderated.py, you could
run it with
withlist -q -r list_moderated jww_test
Mark Sapiro <msapiro at value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Developers