On 06/16/2014 03:54 PM, Peter Knowles wrote: > Lindsay, ... > > You had mentioned something about "withlist" being the script which may can > do pretty much everything. Could this script be used for "updating" > subscriber settings, and if so could you give an example?
Actually, both withlist and config_list can do anything including irrevocably breaking your lists if you don't know what you're doing. See <http://www.msapiro.net/scripts/> for some examples. These are all scripts, some withlist and some stand alone, for doing various Mailman tasks. They exist as a resource for people who want to use them as is, but mainly they exist as example of how to do things. withlist is a framework for passing a list object or all lists objects sequentially to a script and taking care of a bit of housekeeping. Withlist can also be invoked as an interactive Python shell with access to a list object and Mailman's Python API. config_list is normally just given some input like attribute = value to update list attributes, but it works by executing the input file as a Python script and then examining the returned namespace to see what was done. It also passes the list object to the execiting input, so the input can actually do any legal Python thing with that list object. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org