summaryrefslogtreecommitdiff
path: root/bin/config_list (follow)
Commit message (Collapse)AuthorAgeFilesLines
* First crack at an XML exporter of a mailing list's configuration andbwarsaw2006-10-081-362/+0
| | | | | | | | | | | | | | | | membership. The next step is to write an XML importer that reads this file. I'm not 100% sure that all the import data is included yet, but the intent is that this will be the official way to move mailing lists. A few notes: member passwords are not included by default, the idea being that if we enable XML dumping from the web, we don't want the clear text user passwords to be leaked. A command line option includes the member passwords. Also, the various substitutable texts (i.e. those that include %-strings) will be autoconverted to $-strings. In Mailman 2.2, we'll only have $-strings, although this is not yet enforced in other parts of the code yet. Convert config_list.py to mmshell, $-strings, and optparse.
* Port cleaning changes forward from 2.1-maint branch.bwarsaw2005-12-301-1/+2
|
* Add mm_cfg.String in the i18n output, and copyright.tkikuchi2005-11-041-2/+2
|
* config_list i18n. Add PEP 263 charset and restructure output a bit.tkikuchi2005-11-011-15/+28
|
* back port from 2.1.6 / adding new files.tkikuchi2005-08-281-1/+10
|
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-271-1/+1
|
* Tokio Kikuchi's patch #656097 for bug #655144; setting languagebwarsaw2002-12-241-0/+3
| | | | through config_list caused a traceback.
* do_output(): Fix UnboundLocalError when trying to write to a file webwarsaw2002-12-041-1/+1
| | | | don't have permission for. Closes SF #646571.
* do_input(): Fix setting of subscribe_policy based on the value ofbwarsaw2002-12-021-4/+13
| | | | ALLOW_OPEN_SUBSCRIBE. UHUAK.
* Jon Parise's patch to improve the usage() output for the command linebwarsaw2002-10-211-2/+6
| | | | | | and cron scripts. When code/status == 0, there's no error (it's likely --help output) so send that to stdout. Otherwise, it's an error and the output goes to stderr.
* FakeDoc.addError(): Make the API really equivalent tobwarsaw2002-10-171-3/+5
| | | | Document.addError()
* do_list_categories(): Teach this about the attribute transformationsbwarsaw2002-05-251-7/+60
| | | | | | | | | | | | | | | | | on the way out of the mailing list via getValue(). Always defer to getValue() before getattr() is used. This lets us simplify the logic a bit, but we still take care to print useful representations of the data. Use splitlines() instead of assuming lines are \n separated. getPropertyMap(): New function to return the reverse mapping of attribute names to the gui components that define them. FakeDoc: Dummy class definition which defines an API used by the gui components when an error occurs. do_input(): Teach this about the attribute transformations on the way into a mailing list via _setValue(). Yes, this is a non-public method, but there seems to be no other way. :(
* do_output(): The return type from GetConfigSubCategories() is abwarsaw2002-03-111-1/+1
| | | | | | sequence of 2-tuples. We're only interested in the first element of these 2-tuples, since that is the one that names the subcategory (the second element is a description).
* do_output(): Make the MMListError error message consistent with otherbwarsaw2002-01-261-3/+3
| | | | scripts.
* do_output(), do_list_categories(): Convert to the new GetConfigInfo()bwarsaw2001-10-271-71/+79
| | | | signature.
* Ben Gertzfield's patch to hardcode the path to the python executablebwarsaw2001-09-071-1/+1
| | | | | | | | | | | | | into the script's #! line -- based on --with-python settings, without losing CVS revision history. #! /usr/bin/env python becomes #! @PYTHON@ which gets substituted for in configure.
* do_output(): The categories strings should not be translated.bwarsaw2001-05-251-2/+2
|
* Erg. Fix copyright years.bwarsaw2001-03-011-1/+1
|
* do_output(): Some changes to make the resulting variable descriptionbwarsaw2001-03-011-2/+20
| | | | | | | comments a little more palatable. L-strip all lines, strip out html tags, and convert entities > and < Still not perfect, but much better, and it's not worth perfecting.
* Start of support for i18n; marking of translatable strings.bwarsaw2000-12-071-44/+45
| | | | | Use extended print statement, string methods, and other Python 2.0 features.
* Make sure all scripts lowercase the list names, since they are casebwarsaw2000-09-111-1/+1
| | | | | | | insensitive. list_lists prints them out using their real name -- not their internal name -- and they should differ only by case. Closes SF bug #113742 and patch #101434.
* do_output(): Hrvoje Niksic rightly points out that we need tobwarsaw2000-07-271-1/+7
| | | | | special-case `subscribe_policy' when ALLOW_OPEN_SUBSCRIBE is false. Yuk.
* do_output(): Needed to add `autoreply' category to get thebwarsaw2000-07-241-1/+1
| | | | | Autoresponse config variables to dump. Also, massage FileUpload type vars the same way that Text vars are processed.
* do_output(): Added `autoreply' to list of categories.bwarsaw2000-07-241-2/+2
|
* do_output(): Skip volatile attributes (i.e. those whose name beginsbwarsaw2000-06-231-0/+3
| | | | with an underscore).
* Some meager consistency in handling errors when trying to open thebwarsaw2000-04-041-10/+9
| | | | | | | | | | | | | | | | | | mailing list. In all cases, catch the base exception class MMListError, and output a semi-standard error message which also contains the str() of the actual exception details (is this too much?). Also: config_list: slightly different usage() printing find_member.scanlists(): print a message if a MMListError occurs when opening the mailing list object remove_members: Wrap actual DeleteMember() calls in a try/finally to be sure the list is saved and unlocked should an exception occur. Hmm, should it be all or nothing?
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-211-1/+1
|
* Simple script for configuring a list via a "flat" text file. Can bebwarsaw1999-11-261-0/+233
used to dump a list's current configuration variables to a file (or stdout), or to change a list's variables based on the input of a file. Doesn't quite get us to simple conversion of MD style config files, but writing a translator should be an easy step from here.