diff options
| author | bwarsaw | 2007-01-08 04:13:20 +0000 |
|---|---|---|
| committer | bwarsaw | 2007-01-08 04:13:20 +0000 |
| commit | 758c067131369c35b4b737d409ca7809dcd4920a (patch) | |
| tree | d4ce2358fabdd7bf736c0927db14503873596686 /Mailman/bin/list_lists.py | |
| parent | 98cf39934ce1ce7ba7f7cf10617b80b6fc78062e (diff) | |
| download | mailman-758c067131369c35b4b737d409ca7809dcd4920a.tar.gz mailman-758c067131369c35b4b737d409ca7809dcd4920a.tar.zst mailman-758c067131369c35b4b737d409ca7809dcd4920a.zip | |
Diffstat (limited to 'Mailman/bin/list_lists.py')
| -rw-r--r-- | Mailman/bin/list_lists.py | 22 |
1 files changed, 8 insertions, 14 deletions
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() |
