Withlist with python module to change all lists to non-advertised

I have been tasked to look into modifying all existing lists to be non-advertised. I have some knowledge of how withlist works with python. Has anyone created a module for use with python taht will accomplish this. I may have to get in and learn python again.
Many thanks....
-- Christopher Adams adamsca@gmail.com

On 5/8/2013 12:41 PM, Christopher Adams wrote:
You don't need withlist for this, although you could do it with something as simple as
def set_non_advertised(mlist): mlist.advertised = 0
All you need to do is create a one-line file containing
advertised = 0
and run
#! /bin/sh
cd /path/to/mailman
for list in bin/list_lists --bare
; do
bin/config_list -i /path/to/file
done
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Geez, that is even documented. http://wiki.list.org/pages/viewpage.action?pageId=4030597
Thanks, Mark for getting me on the right track.
On Wed, May 8, 2013 at 12:57 PM, Mark Sapiro <mark@msapiro.net> wrote:
-- Christopher Adams adamsca@gmail.com

On 5/8/2013 12:41 PM, Christopher Adams wrote:
You don't need withlist for this, although you could do it with something as simple as
def set_non_advertised(mlist): mlist.advertised = 0
All you need to do is create a one-line file containing
advertised = 0
and run
#! /bin/sh
cd /path/to/mailman
for list in bin/list_lists --bare
; do
bin/config_list -i /path/to/file
done
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Geez, that is even documented. http://wiki.list.org/pages/viewpage.action?pageId=4030597
Thanks, Mark for getting me on the right track.
On Wed, May 8, 2013 at 12:57 PM, Mark Sapiro <mark@msapiro.net> wrote:
-- Christopher Adams adamsca@gmail.com
participants (2)
-
Christopher Adams
-
Mark Sapiro