From 758c067131369c35b4b737d409ca7809dcd4920a Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Mon, 8 Jan 2007 04:13:20 +0000 Subject: Change the semantics of the -f and -b flags. Now -f prints the fully qualified list name, and it is no longer incompatible with -b (which just turns off the description). --- Mailman/bin/list_lists.py | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'Mailman') diff --git a/Mailman/bin/list_lists.py b/Mailman/bin/list_lists.py index 87e855f4c..b4ca44366 100644 --- a/Mailman/bin/list_lists.py +++ b/Mailman/bin/list_lists.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2006 by the Free Software Foundation, Inc. +# Copyright (C) 1998-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 @@ -51,8 +51,7 @@ given.""")) parser.add_option('-f', '--full', default=False, action='store_true', help=_("""\ -Print the full list name, including the posting address. This option is -ignored when -b is given.""")) +Print the full list name, including the posting address.""")) parser.add_option('-C', '--config', help=_('Alternative configuration file to use')) opts, args = parser.parse_args() @@ -84,7 +83,7 @@ def main(): else: mlists.append(mlist) if opts.full: - name = mlist.internal_name() + name = mlist.fqdn_listname else: name = mlist.real_name longest = max(len(name), longest) @@ -99,17 +98,12 @@ def main(): format = '%%%ds - %%.%ds' % (longest, 77 - longest) for mlist in mlists: + if opts.full: + name = mlist.fqdn_listname + else: + name = mlist.real_name if opts.bare: - print mlist.internal_name() + print name else: - if opts.full: - name = mlist.internal_name() - else: - name = mlist.real_name description = mlist.description or _('[no description available]') print ' ', format % (name, description) - - - -if __name__ == '__main__': - main() -- cgit v1.2.3-70-g09d2