From a55d4aa436f34e5d3f1e0e06b372b57de323aa61 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sat, 21 Jul 2007 14:52:50 -0400 Subject: Remove some obsolete command line scripts: - bin/check_dbs because there are no more pickles - bin/convert because in MM3 everything will use $-strings and we'll do the conversion on import of the old list data - bin/mmshell because setuptools provides its own equivalent - bin/qrunner and bin/mailmanctl because the files were empty There are a bunch of scripts still left in bin/ which will eventually get removed. I'm leaving them for now because they're either helpers generally tangential to Mailman (msgfmt, po2template, pygettext, templ2pot, transcheck), or are using old interfaces that will go away soon (clone_member, convert, discard, fix_url, list_admins, remove_members, reset_pw, sync_members). Also moved bin/cleanarch into Mailman/bin/cleanarch.py and updated it to use optparse. Also added a small patch to genalias to standardize its help printing. --- bin/convert.py | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 bin/convert.py (limited to 'bin/convert.py') diff --git a/bin/convert.py b/bin/convert.py deleted file mode 100644 index aefc5d532..000000000 --- a/bin/convert.py +++ /dev/null @@ -1,44 +0,0 @@ -#! @PYTHON@ -# -# Copyright (C) 2002-2007 by the Free Software Foundation, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -"""Convert a list's interpolation strings from %-strings to $-strings. - -This script is intended to be run as a bin/withlist script, i.e. - -% bin/withlist -l -r convert -""" - -import paths -from Mailman import Utils -from Mailman.i18n import _ - -def convert(mlist): - for attr in ('msg_header', 'msg_footer', 'digest_header', 'digest_footer', - 'autoresponse_postings_text', 'autoresponse_admin_text', - 'autoresponse_request_text'): - s = getattr(mlist, attr) - t = Utils.to_dollar(s) - setattr(mlist, attr, t) - mlist.use_dollar_strings = 1 - print _('Saving list') - mlist.Save() - - - -if __name__ == '__main__': - print _(__doc__.replace('%', '%%')) -- cgit v1.2.3-70-g09d2